Forum: Ruby on Rails Conditional URL in form post?

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.
fredrikbach (Guest)
on 2007-04-26 02:15
(Received via mailing list)
Hello there,

I am trying to send a form post to different URLs based on the data
submitted in the form (if the user selects credit card payment I need
to send a form POST to a payment gateway, and if the user selects
invoice payment type then I will process the form data within the
Rails app). I have tried using Net::HTTP from the controller, which
works well in sending a POST request with the needed parameters,
however I am not directed to the URL I am posting to (which needs to
happen to complete the credit card transaction).

Any help/ideas would be very much appreciated.

Thx,
-Fredrik Bach
This topic is locked and can not be replied to.