title: How does the params method work?
body: <p>I have been trying to figure out how the params method works and I'm a bit stuck on the process.</p>
  
  <p>For example, if a user clicks on a certain blog post in the index page, I guess that the link_to method calls the Post controller and the show action along with its block <code>@post = Post.find(params[:id])</code> and then goes to the database to find the post and the view displays it.</p>
  
  <p>So my missing link seems to be when is the post id passed into the params method?</p>