Module: DeviseWind::Controllers::Users
- Defined in:
- lib/devise_wind/controllers/users.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/devise_wind/controllers/users.rb', line 11 def create @user ||= User.new(params[:user]) if @user.save flash[:notice] = "Welcome #{@user.login}" redirect_to user_path(@user.id) else render :action => "new" end end |
#new ⇒ Object
7 8 9 |
# File 'lib/devise_wind/controllers/users.rb', line 7 def new @user ||= User.new(params[:user]) end |
#show ⇒ Object
4 5 |
# File 'lib/devise_wind/controllers/users.rb', line 4 def show end |