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.
5441ca4708065da7e0467e1470c49653?d=identicon&s=25 Carter Rabasa (crabasa)
on 2007-02-28 23: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.