How about saving the object in a session value? session[:my_object] = my_object/@my_object
The next action could just retrieve it easily: my_object/@my_object = session[:my_object] Pepe On Aug 5, 4:57 am, Zhao Yi <rails-mailing-l...@andreas-s.net> wrote: > I use form_tag like below: > > <% form_tag (my_action) %> > > <%= submit_tag "Submit" %> > > <% end %> > > In this case, how can I pass a Ruby object to "my_action" action? I want > to pass a Hash to the next action. > > thanks. > -- > Posted viahttp://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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---