title: How to capture an anchor value from url in Ruby on Rails?
body: <p>After updating or creating a record I use url helper to redirect to the part on the page where the record happened to be located:</p>
  
  <pre><code>if record.save
    ....
    redirect_to records_url, :anchor =&gt; "record_" + record_id.to_s
  end
  </code></pre>
  
  <p>the resulting url will be something like </p>
  
  <p><a href="http://localhost:3000/records#record_343242" rel="nofollow noreferrer">http://localhost:3000/records#record_343242</a></p>
  
  <p>I want to highlight the record using jquery or prototype, and the anchor is the exact id that I am looking for. Can I capture it?</p>