On Mon, Nov 29, 2010 at 9:44 AM, Mark Ratjens <[email protected]> wrote:
> The requirement is to have urls of the form
>
> /cars/23
>
> not
>
> /products/cars-23

Assuming all of the IDs are in the 1 set/table, you can do something
with the routing like this

resources :cars, :controller => "products"
resources :trucks, :controller => "products"

Cheers,

Michael

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.

Reply via email to