[Rails] Re: how to get rid of nil values in session?
On Feb 5, 1:33 pm, "Robert Pankowecki (rupert)"
<robert.pankowe...@gmail.com> wrote:
> According to the documentation it inherits from Hash and has delete
> method.
>
> http://api.rubyonrails.org/classes/ActionDispatch/Session/AbstractSto...
Thanks for all the trouble you are taking, Robert. I added the line:
logger.info session.keys.inspect
upon which it gave me an error:
undefined method 'keys' for #<CGI::Session:...
and when I look at ri CGI::Session, it tells me, "data can be set and
retrieved by indexing the Session instance using '[]', much the same
as hashes (although other hash methods are not supported)."
I am running rails 2.1.0, whereas the documentation you pointed me to,
relates to 3.0.3 -- sorry I did not mention that sooner.
Warmly, Arun
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home