Hello,
At the moment I have the following route in my routes.rb file
map.resources :categories do |categories|
categories.resources :products
end
Simple relationship...
product belongs_to a category
a category has_many products
is it possible to create a route where I could have something like:
map.product '/:category_name/:product_name'
I can't seem to get both of the controllers working together to create
such route.
Thanks in advance.
McKenzie
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---