On May 12, 9:06 am, 5T41N5 <yawboaky...@gmail.com> wrote:

> module SessionsHelper
>   def sign_in(user)
>     cookies.permanent[:_pm] = user.remember_token
>     current_user = user
>   end
> end
>
> The problem is the cookie doesn't get set to any value at all. It's
> always nil.
> Thanks in advance for any assistance given.
>
So does the user that you are testing with have a remember_token or is
it nil (perhaps you added the before save after you created that
user) ?

Fred
> [All the code is hosted here:https://github.com/TAKE2/RoR-Tutorial]

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to