RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: davidtolsma
automatically login after signup. Add the cookies line in the save condition.
@user = User.new(params[:user])
redirect_to root_url, :notice => "Signed up!"
cookies[:auth_token] = @user.auth_token
flash[:notice] = "User exists."