Forum: Ruby on Rails Deriving controller/action from a RESTful URL

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Carter R. (Guest)
on 2007-03-01 00:32
If I have a URL/PATH generated via Rails routing:

edit_foo_path(foo)) => "/foo/1;edit" there some way that I can take that string and get its component
parts (controller, action, id, etc)??

I'm specifically looking for a solution that doesn't involve me coming
up with a regex.  I want to rely on code with Rails (which clearly
must exist).

Carter Rabasa
This topic is locked and can not be replied to.