On Sun, 2008-03-23 at 12:02 +0100, Advait Bellur wrote:> Hi,
>
> How to make use of sessions for a save button. I am making use of the
> save button in the following way.
>
> <input type=''button'' name=''Save''
value=''save'' ovClick=''return
> validate(....);''>
>
> I want to make use of sessions inside this save button because once, it
> saves the dialog it should return to the desired url which I am going to
> store inside the sessions.
-----
<% session[:some_variable] => ''some_value'' %>
but it really doesn''t go into the ''save'' button or if
you want it to be
set when the save button is clicked, set the value inside the controller
method that handles the save action
Craig
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---