Forum: Ruby on Rails process request and redirect to another url with all params

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Doug M. (Guest)
on 2009-06-01 21:29
I am trying to do the following:
process a request containing form data. Once I my app has successfully
completed its processing, I would like to redirect_to a totally
different site and pass along the parameters that came in with the
original request.

This is how I am currently handling it in the controller:
[code=]def create
      @subscription =[:subscription])

      @subscription.user_id =


      respond_to do |format|

            parms2 = params

            format.html {redirect_to
           #handle the problem

Everything up to the redirect is happening correctly. Then I am
redirected to but it is behaving as though the
parms2 are missing. I am new to Ruby and Rails and am probably missing
something very easy here.

Thanks in advance.
Mk 2. (Guest)
on 2009-06-01 21:59
The key issue here is that this will need to be send as a POST request,
whereas I assume the default of redirect_to is GET.

You will have to put the params onto to the end of the url string
yourself, eg.

This topic is locked and can not be replied to.