title: Rails: flash message shows in the url as param
body: <p>Hi all my flash messages work in the normal fashion but there is an action in one of my controllers where the flash message does not work.</p>
  
  <p>This is the view:</p>
  
  <pre><code>&lt;%= form_tag update_status_order_path(update_status), method: :put do |f| %&gt;
      &lt;%= select(:order, :status, [['Active', 1], ['Inactive', 0]]) %&gt;
      &lt;%= submit_tag "Update" %&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>This is the controller action</p>
  
  <pre><code>def update_status
          if @order.update_order_status! params[:order][:status] 
              redirect_to show_orders_ofert_path @order.ofert, success: "Updated!."
          else
              redirect_to show_orders_ofert_path @order.ofert, error: "Error."
          end
      end
  </code></pre>
  
  <p>When I send the form the action is performed correctly, but the flash message is not displayed in the layout, instead is displayed in the url as a param, just after click the Update button it reloads and shows the url like this:</p>
  
  <pre><code>http://localhost:3000/oferts/48/show_orders?success=Updated!
  </code></pre>
  
  <p>I have tried changing put to patch but it did not worked, even changing the action to work with respons_to block but it did not work, any idea?</p>
  
  <p>this problem is only happening with that specific action because with the other actions I have the flash messages are isplayed normally.</p>
  
  <p>Thanks</p>