title: How to redirect to previous page in Ruby On Rails?
body: <p>I have a page that lists all of the projects that has sortable headers and pagination.</p>
  
  <pre><code>path:
  /projects?order=asc&amp;page=3&amp;sort=code
  </code></pre>
  
  <p>I choose to edit one of the projects</p>
  
  <pre><code>path:
  projects/436/edit
  </code></pre>
  
  <p>When I click save on that page, it calls the projects controller / update method.  After I update the code I want to redirect to the path that I was on before I clicked edit a specific project. In other words, I want to be on the same page with the same sorting.</p>
  
  <p>I saw link_to(:back) and thought that :back may work in redirect_to(:back), but that's a no go. </p>
  
  <pre><code>puts YAML::dump(:back) 
  yields the following:
  :back 
  </code></pre>
  
  <p>Any ideas on How I could get this to work. It seems like a problem that would be easily solved, but I'm new to RoR.</p>