Hi,
Kind of a dumb question but when there is something in the session how
do
you remove it?
@session.delete(:params) doesn’t work unfortunately.
Hi,
Kind of a dumb question but when there is something in the session how
do
you remove it?
@session.delete(:params) doesn’t work unfortunately.
I seem to remember reading that you can do this with a ‘nil’ assignment
(e.g., session[:thing_to_remove] = nil ). Let us know!
Best regards,
Bill
----- Original Message -----
From: Frank K.
To: [email protected]
Sent: 2006-03-09 3:36 PM
Subject: [Rails] removing something from the session
Hi,
Kind of a dumb question but when there is something in the session how
do you remove it?
@session.delete(:params) doesn’t work unfortunately.
–
Frank K.
http://betweengo.com/
Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails
reset_session
adam
I was doing that but I thought it wasn’t actually removing it from the
session, just setting it to nil. But you’re right, it does actually
remove it. Thanks!
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs