So, I should use redirect_to and use flash for passing the hash.
Can you give me code snippet?

Thanks a lot.

Bharat Ruparel wrote:
> Srividya,
> The way I have been doing this rather quick and dirty but it works.
> Basically, you want to communicate between two HTTP requests.  One of
> the most useful facilities in Rails is flash which is a special member
> of the session hash.  It is special in the sense that it is
> temporary.  By default, it will retain the values stored in it across
> two request and then it discards them automatically.  Easy solution,
> just stuff the hash in the flash which itself is a hash anyway and
> retrieve it in any action that you desire.  It has worked very well
> for me.
> Bharat

-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to