On 25 April 2012 11:15, Amir Z. <[email protected]> wrote:
> Please find my login code below.
>
> def login
> if request.get?
> @user = User.new(:remember_me => cookies[:remember_me] || "0")
> elsif param_posted?(:user)
> @user = User.new(params[:user])
> user = User.find_by_screen_name_and_password(@user.screen_name,
> @user.password)
> if user
> user.login!(session)
> if @user.remember_me == "1"
> cookies[:remember_me] = { :value => "1",
> :expires => 10.years.from_now }
>  user.authorization_token = user.id
> user.save!
> cookies[:authorization_token] = {              (line no. 27)
> :value => user.authorization_token,            (line no. 28)
> :expires => 10.years.from_now }                (line no. 29)

What is the path and file name that code is in?  Check very carefully
that you post the correct name, do not just type what you /think/ it
is.

Colin

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to