In Rails 4 these methods are gone. However, you can accomplish the same thing using
It’s well documented that if you use named routes in Rails you get the benefit of saying things
faq_path in your code.
But what if you want the hash that makes up that named route? Why? Because there are two
and the one that is available to cache sweepers expects a hash not a url. And it would be lovely to use my named routes
and get back the hash.
I didn’t see this documented anywhere, but in the source alongside the
aforementioned methods a named route will generate