Ruby on Rails Thursday, June 28, 2012

i think you can pass data as the get parameters along with the request i.e generate the url which contains the parameters that you want to pass

On Thu, Jun 28, 2012 at 4:02 AM, cyber c. <lists@ruby-forum.com> wrote:
Hi,

I have 2 controllers A and B. The create method in controller A is
programmed to redirect to B#index method. I want to pass data between my
controllers, so i have made use of the params hash. But i cannot access
the params hash on the index method of B controller. what is the right
way to pass values between controllers?

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




--
Thanks, 
Aash

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

No comments:

Post a Comment