Question regarding routing

Hi Everyone,
I am developing a small web application using rails, in my controller I
added a function which is apart from the normal one’s that are supported
the default routes, hence to map this one as well I have the following

map.resources :controller, :collection => { :additional_function => :get

Now I am able to access this method just as I should, but I just wanted
know if there is some dynamic path construct that I can use for this
in my views.

To make my question more clear, eg.) if I have to use the path to the
action I would use this : new_controller_path
So what I want to know is if there is such a dynamic variable that I can
for the additional function that I declared, or do I always have to hard
code it using a string ?

Thanks & Regards,
Dhruva S…

Marie von

  • “Even a stopped clock is right twice a day.”

Wouldn’t it just be controller_additional_function_path?

You can check by running rake routes