title: Get current path name in Rails
body: <p>I would like to be able to get the name of the current route in a request in Ruby on Rails. I've found ways I can access the controller and action of the request, but I would like to access a string or symbol of the name.</p>
  
  <p>For example, if I have a <code>users</code> resource;</p>
  
  <ul>
  <li>If I go to /users/1 I would like to be able to get <code>users_path</code></li>
  <li>If I go to /users/1/edit I would like to be able to get <code>edit_users_path</code></li>
  </ul>
  
  <p>I simply want to retrieve the name of the current route on a given request.</p>