Ruby, post and redirect
Posted
by Adrian Serafin
on Stack Overflow
See other posts from Stack Overflow
or by Adrian Serafin
Published on 2010-03-24T09:13:50Z
Indexed on
2010/03/24
9:43 UTC
Read the original article
Hit count: 290
Hi!
I have situation like this:
- user submits form with
action='/pay'
- in '/pay' I have to add some additional parameters and send post request to
www.paymentprovider.com/new_payment
The problem is that I want to post and redirect (at the same time) user to this new website www.paymentprovider.com/new_payment
. Currently I am using
Net::HTTP.post_form
Do you know any ways to achieve this?
© Stack Overflow or respective owner