Forum: Ruby on Rails params from fields and different actions.

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ram (Guest)
on 2006-12-28 17:21
   Hi,

   I have two actions: c1 and c2. From v1.rhtml view
   I am redirected to c1 with a submit method.

   def c1
    # the input is params[:form_in_v1] from v1.rhtml
    ...
    x_value = params[:form_in_v1]['some_value']
    ...
    redirect_to :c2, :form_in_v1 => params[:form_in_v1]
   end

   def c2
    ...
    x_value = params[:form_in_v1]['some_value']
    ...
   end

   somehow doesn't work ! :( params[:form_in_v1] was a
   hash when it comes to c1 from the view but no more
   when redirecting to c2 ???

   Is there a clean solution?

   Thanks,
   Ram.
This topic is locked and can not be replied to.