title: what does redirect_to(@model) means in rails?
body: <p>From this url <a href="http://www.helloworlder.com/?p=6" rel="noreferrer">http://www.helloworlder.com/?p=6</a> i found the syntax for redirect_to or render, expects a string. </p>
  
  <p>Like this:</p>
  
  <pre><code>render(:action=&gt;’my_action’)
  redirect_to(:action=&gt;’my_action’)
  </code></pre>
  
  <p>But in ruby rails guides i see something like <code>redirect_to(@model)</code>. It is stated in their docs that it will go to show action. Please explain what does <code>redirect_to(@model)</code> means.</p>
  
  <p>Thanks</p>