views:

39

answers:

2

I have my resources already defined, but a client wants to change the names of the URLs to match their brand (e.g. something like "catalog" when the resource is currently "products"). Can I specify a different controller name with a resource so I can get all the built-in resources functionality without having to actually rename the controller and model names?

+1  A: 

Okay it looks like it's as simple as adding the controller name, and it seems to be working. Nevermind!

Wayne M
+2  A: 

For the record: map.resources :products, :controller => "catalog" is how you do this.

Ryan Bigg