title: Rails 3 get request referrer
body: <p>I'm using Rails 3.0.9, Ruby 1.9.2, Devise 1.3.4 and has a need in Devise session new view to access the request url parameters although I see this as a general Rails request handling question. Essentially, a request is made to a Devise authenticated resource which redirects the user to the login screen. In the login view, I need access to the request url, eg, this is the request url called in the beginning</p>
  
  <pre><code>http://mysite.com/article/5?type=blah
  </code></pre>
  
  <p>In the redirect login page, I need access to that URL, anyone know how I can do this?</p>