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.
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.
session[‘a’] = nil
----- Original Message -----
From: “iseng” [email protected]
To: [email protected]
Sent: Monday, July 03, 2006 4:14 AM
Subject: [Rails] how to delete session (hash) member?
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