rails/rails — pull request #11808 by artempartos (2013-08-08 12:46:51+00:00)
Title:  Reverse routing (hash access methods for named route )

In our company we have a lot of projects where we depend of controller and action (in our acl for example).
In basic case we can get it from params.
But sometimes we have situations where we need to know action/controller by name of the path/url.
Before this https://github.com/rails/rails/commit/02f2e3d538f79d61ab5abdcdb3bea30843d3ee4a commit i used method hash_for_[any]_path that return options i need.
Now, i decide to upgrade some of projects to rails4 and of course i get
`undefined method hash_for_{any}_path`
I find two way how i can fix it
***
```ruby
Rails.application.routes.recognize_path(any_path)
```
Sometimes its working. Thats good! But for actions that needed :id this method not working for me (i dont know about id in my acl)
***
2) Very ugly code like this
```ruby
Rails.application.routes.routes.routes.find { |x| x.name == any_path}
```
I dont want to see this code. That's why this request here.

If this request is useless and no will be merged - can anyone to say me why hash access methods were removed?