Rails encourages REST resources as a convention? Hope I got what you're asking correctly.
Seems like it's better in the long run to treat individual product types as a resource. You might need the posts, puts n deletes in the long run. On 29 Nov 2010 07:33, "Michael Gall" <[email protected]> wrote: On Mon, Nov 29, 2010 at 9:44 AM, Mark Ratjens <[email protected]> wrote: > The requirement is to have... 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" gr... -- 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.
