Module: DeviseWind::Controllers::Users

Defined in:
lib/devise_wind/controllers/users.rb

Instance Method Summary collapse

Instance Method Details

#createObject



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.}"
    redirect_to user_path(@user.id)
  else
    render :action => "new"
  end    
end

#newObject



7
8
9
# File 'lib/devise_wind/controllers/users.rb', line 7

def new
  @user ||= User.new(params[:user])
end

#showObject



4
5
# File 'lib/devise_wind/controllers/users.rb', line 4

def show
end