Created
August 2, 2010 09:04
-
-
Save volkanunsal/504365 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if user = User.authenticate(params[:user]["email"], params[:user]["password"]) | |
#set_current_account(user) | |
session[:email]="mycookie@email.com" | |
redirect "/user" | |
else | |
flash[:error]= 'There was a problem signing you in. Please try again.' | |
render "sessions/login", :layout => !request.xhr? | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=session[:email] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment