session[''a''] = nil
----- Original Message -----
From: "iseng" <isengoi@gmail.com>
To: <rails@lists.rubyonrails.org>
Sent: Monday, July 03, 2006 4:14 AM
Subject: [Rails] how to delete session (hash) member?
> session[''a''] = ''aaa''
>
> session.model.data.delete(''a'') <<< works but too
"deep" and error-prone
>
> session.delete(''a'') <<< doesn''t work
>
> is there a better way?
>
> thanks. :)
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>