[Rails] The opposite of url_for?
Hi,
I have a URL value (session[:return_to]) that I want to derive the
action and controller from. Essentially what the routing system does
for an actual web request when it puts together the params hash.
My search-foo is letting me down. What is the best method to get back
the action and controller from a URL?
TIA,
Walter
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home