On Oct 13, 10:30 am, gdiazl email@example.com wrote:
map.resources :no, :controller => “places”,
My problem is that i don’t want to have 2 urls pointing to the same
page. If I type “/places/whatever” i got the same as if i type “/no/
/places/whatever is going to be there because of the default routes
You probably don’t want to mess with that setting either.
If you really want to use /places/ for something else, then
need to put a new rule in above the default rules to override them;
map.connect ‘places/:action/:id’ , :controller =>
Seems unlikely you’d want to do that.
So, I think living with the two routes isn’t a problem.
If you really wanted to shut it off, I guess you could have
‘some_other_controller’ send back an http status of 500 or something.
map.connect ‘places’ , :controller =>
‘some_other_controller’ , :action => ‘warn’
I defer to a routing expert though.