On 21 Jul 2008, at 23:42, Justin To wrote:
>
> session.model.update_attribute(:user_id, session[:user_id])
> session.model.update_attribute(:requirement_title, params[:thread])
>
> I found this on the net. Not sure how it works. Whenever a user clicks
> on a certain link, I want to update the session''s, that
corresponds to
> the user_id, :requirement_title.
The above assumes you are using active_record_store and is for
modifying metadata about the session, not the session data itself
Normally just session[:foo]=:bar will do the trick.
Fred
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---