title: how to pass data between views/pages in Ruby on rails?
body: <p>I have a ruby on rails app. I have a view that lists hyperlinks as such, this view is also rendered via same controller/action . when user clicks hyperlinks displayed on this page they go to the same  controller/action, with a different id parameter. I want to be able to tell in my controller/view how user gets to these pages, i.e. whether user clicked on one of these hyperlinks vs user came through a different source? </p>
  
  <pre><code>&lt;div id='list'&gt;
    &lt;a href='controller/action/1'&gt; some link 1 &lt;/a&gt;
    &lt;a href='controller/action/2'&gt; some link 2 &lt;/a&gt;
  &lt;/div&gt;
  </code></pre>