Permalink
Browse files

signin the user

  • Loading branch information...
1 parent ce9e6d9 commit c43e2f33cc155277d54c4916c18ab4664553a7c7 @YogiZoli committed Apr 8, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 app/controllers/users_controller.rb
@@ -10,6 +10,7 @@ def new
def create
@user = User.new(params[:user])
if @user.save
+ sign_in @user
flash[:success] = "Welcome to my Awesome App!"
redirect_to @user
else

0 comments on commit c43e2f3

Please sign in to comment.