title: Rails redirect_to rendering but not showing the view
body: <p>I'm trying to redirect_to a view from another after some actions inside my controller </p>
  
  <p>My Controller </p>
  
  <pre><code>def sendPayment
  @jsonParams = cleanParams(params)
  
  
  @result = HTTParty.post('http://pxxxxxxxxxs'.to_str,
  :body =&gt; @jsonParams.to_json,
  :headers =&gt; { 'Content-Type' =&gt; 'application/json',
                'Api-Access-Key' =&gt; 'xxxxxxxx',
                'Transaction-Hash' =&gt; xxxx } )
  
   puts @result
   redirect_to payments_response_path(:result =&gt; @result)
  end
  </code></pre>
  
  <p>In My console I get this message:</p>
  
  <pre><code> Processing by PaymentsController#show as JS
   Parameters: {"id"=&gt;"response"}
   Rendered payments/show.html.erb within layouts/application (0.3ms)
   Completed 200 OK in 33ms (Views: 32.8ms | ActiveRecord: 0.0ms)
  </code></pre>
  
  <p>But my view is never rendered... Can anyone help?</p>
  
  <p>My Routes:</p>
  
  <pre><code> Rails.application.routes.draw do
   get 'home/index'
  
   root 'home#index' 
  
   resources :home
   resources :payments
   resources :bills
   resources :accounts
  
   #Payment Custom Routes
   post 'payments/send', to: "payments#sendPayment"
   get 'payments/send', to: "payments#sendPayment"
   post 'payments/remove', to: "payments#deletePayment"
   get 'payments/remove', to: "payments#deletePayment"
   get 'payments/response', to: "payments#responseShow"
   #Bills Custom Routes
   post '/sendBill', to: "bills#sendBill"
  
  
   end
  </code></pre>