I’ve mapped this nested route for a product catalog…
map.resources :brands do |brand|
brand.resources :product_lines do |product_line|
product_line.resources :products do |product|
product.resources :upcs
end
end
end
And the pretty URLS are working great (when manually typed)…
/brands/1/product_lines/5/products/10/upcs/15/edit
My problem is I don’t know how to construct those pretty links in my
link_to and redirect_to paths…