Within a Rails controller or view: How can I request a Rails routing mechanism to include a relative url string (for example, "/ controllername / action / whatever" in the controller class that will be responsible for processing this request?
I want to do something like this:
controllerClass = someMethod("/controllername/action/whatever")
Where contorllerClass is an instance of a class.
I do not want to make any assumptions regarding the routing agreement, for example. that "controllername" in the above example is always the name of the controller (because it is not).
ruby-on-rails
Joel
source share