title: Rails: Parse route information from URL
body: <p>How can I parse url string to hash like</p>
  
  <pre><code>{:controller =&gt; 'controller_name', :action =&gt; 'action_name', :id =&gt; 'id'}
  </code></pre>
  
  <p>?</p>