title: adding extra parameter to ruby on rails path
body: <p>I'm really new to ruby and coming from a php background.</p>
  
  <p>But I want to create a link to a path and add an extra parameter on the end of the path.</p>
  
  <p>Here's what I have: </p>
  
  <pre><code>&lt;%= link_to 'View Answers', quiz_path(@quiz "answers=true") %&gt;
  </code></pre>
  
  <p>with out the <code>answers=true</code> the link resolves to <code>http://localhost:3000/quizzes/3</code>, which is as expected and works fine. But when I add the <code>answers=true</code> i get <code>http://localhost:3000/quizzes/3.answers=true</code>.</p>
  
  <p>This is so close. But of course I need the <code>.</code> to be a <code>?</code>. </p>
  
  <p>Obviously I not doing this quite right, but if can help me with a simple a solution about how to add an extra parameter in the link url I would be grateful.</p>