You can access it ok, it is just that it is nil. Is the login method
being called in the action where you are seeing the problem? Debug
into your action to check if necessary. Have a look at the Rails
Guide on Debugging to find how to do this.
Colin
Please don't top post, it makes it difficult to follow the thread, and
also means that you do not look at each point in the previous mail and
answer the questions. Insert you replies inline in previous message.
Thanks.
So because you have not top posted you have not answered my question:
Is the login method being called in the action where you are seeing
the problem?
And if you think it is have you taken note of my other suggestion to:
Debug into your action to check if necessary. Have a look at the
Rails Guide on Debugging to find how to do this.
If you reply make sure you address these points.
Colin
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-talk/-/bR_T09UcB-cJ.
>
> To post to this group, send email to rubyonra...@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-ta...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.