title: redirect to payment URL with post params
body: <p>I want to integrate PayuMoney payment gateway to my rails application. And I want to redirect to payment gateway URL with post request, so I use HTTparty to redirect and POST request to payumoney URL.</p>
  
  <p>My controller:</p>
  
  <pre><code>class ClientFeePaymentsController &lt; ApplicationController
   include HTTParty
  
   def fee_payment
     uri = URI('https://test.payu.in/_payment.php')
     res = Net::HTTP.post_form(uri, 'key' =&gt; 'fddfh', 'salt' =&gt; '4364')
     puts res.body    
   end 
  end
  </code></pre>
  
  <p>routes:</p>
  
  <pre><code>resources :client_fee_payments do
      collection do
        get :fee_payment
        post :fee_payment
      end
    end
  </code></pre>
  
  <p>when i run this i got,</p>
  
  <pre><code>Missing template client_fee_payments/fee_payment, application/fee_payment with {:locale=&gt;[:en], :formats=&gt;[:html], :variants=&gt;[], :handlers=&gt;[:erb, :builder, :raw, :ruby, :coffee, :axlsx, :jbuilder]}.
  </code></pre>