title: How to use variable from link
body: <p>I have a link which reads</p>
  
  <pre><code>&lt;a href="&lt;%= user_collections_path(@user, :status =&gt; "Got") %&gt;"&gt;Collection&lt;/a&gt;
  </code></pre>
  
  <p>and another which reads</p>
  
  <pre><code>&lt;a href="&lt;%= user_collections_path(@user, :status =&gt; "Want") %&gt;"&gt;Wantlist&lt;/a&gt;
  </code></pre>
  
  <p>They link to the same view but produce different lists.
  On that view page I want to be able to alter the text depending on if it is a Collection or Wantlist page. Something like this:</p>
  
  <pre><code>&lt;% if :status == 'Got' %&gt;collection&lt;% elsif :status == 'Want' %&gt;wantlist&lt;% end %&gt;
  </code></pre>
  
  <p>Obviously that doesn't work but after much experimentation I can't work out how to query which status was passed in the link. Is this possible?</p>