title: redirection and routes in Rails
body: <p>I'm currently reading Beginning Rails 3.  I have a question about redirection.  The book states that "redirect_to can also take an object as a parameter" vs a path.  So the example they give is that</p>
  
  <pre><code>redirect_to(@article)
  </code></pre>
  
  <p>is a shortcut equivalent to</p>
  
  <pre><code>redirect_to(article_path(:id =&gt; @article))
  </code></pre>
  
  <p>I'm not sure I understand this.  What exactly is the line :id => @article saying?</p>
  
  <p>thanks,
  mike</p>