title: Passing parameters in rails redirect_to
body: <p>How do we pass parameters in redirect_to in rails?
  I know we can pass id using this:</p>
  
  <pre><code>redirect_to :action =&gt; action_name,:id =&gt; 3
  </code></pre>
  
  <p>If I want to pass additional parameters like some form data how to achieve it?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>For Ruby 2 syntax you have to update the snippet above to:</p>
  
  <pre><code>redirect_to action: action_name, id: 3
  </code></pre>