Ben Johnson wrote:
This is a dumb question but for some reason I can not get this to work. I basically just need a route that is prefixed with /components. So I did this:
map.components "/components/:controller/:action"
The problem is what if I have nested controllers? For example:
components/foo/bar/some_action
It things bar is my action and doesn't recognize my route correctly.
Is what I'm trying to do possible with routes?
thanks for your help
Just add another route:
map.connect '/components/foo/:controller/:action'