Maybe there is no need to delete the keys on the session if those have
nil as value. Probably rails doesn't pass them into the cookie anyway.
But I would do an experiment to make sure.
--
Thanks, Ivan Povalyukhin

On Feb 5, 2:40 am, arunmehta <[email protected]> wrote:
> On Feb 5, 1:33 pm, "Robert Pankowecki (rupert)"
>
> <[email protected]> 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 [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