How can I get information about controller and action names for any (not only current) url, if there is a route rule for this?
For example:
function_i_need('/pages/5')
returns
{:controller => 'page', :action => 'show', :id => 5}
UPD: Answer found Rails parse url to hash(Routes)
you can do this: