Permalink
Browse files

Auto log in after sign up.

  • Loading branch information...
1 parent 3056d07 commit 976b0e10a6dda73874e9e6509c0df42f66367c76 @xmonkey committed Dec 15, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 app/controllers/users_controller.rb
@@ -6,6 +6,7 @@ def new
def create
@user = User.create(params[:user])
if @user.save
+ session[:user] = @user
redirect_to root_path, :notice => "User #{@user.name} was created!"
else
render :new

0 comments on commit 976b0e1

Please sign in to comment.