sort figures by year, bugfixes, layout work
[smr.git] / gui / app / controllers / users_controller.rb
blob28fd5914678940aa65ed28720c86c80f050fd9a2
2 # This file is part of SMR.
4 # SMR is free software: you can redistribute it and/or modify it under the
5 # terms of the GNU General Public License as published by the Free Software
6 # Foundation, either version 3 of the License, or (at your option) any later
7 # version.
9 # SMR is distributed in the hope that it will be useful, but WITHOUT ANY
10 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 # A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License along with
14 # SMR.  If not, see <http://www.gnu.org/licenses/>.
17 class UsersController < ApplicationController
19   def new
20     @user = User.new
21   end
22   
23   def create
24     @user = User.new(params[:user])
25     if @user.save
26       redirect_to root_url, :notice => "Signed up!"
27     else
28       render "new"
29     end
30   end
31   
32   def edit
33     @user = current_user
34   end
36 end