change the URL without changing the resource name
have you tried this, should work resources :rabbit_categories, :path => “rabbits/categories” See Rails Routing from Outside In for more details.
have you tried this, should work resources :rabbit_categories, :path => “rabbits/categories” See Rails Routing from Outside In for more details.
Travis R is correct. (I wish I could upvote ya.) I just got this working myself. With these routes: resources :articles do resources :comments end You get paths like: /articles/42 /articles/42/comments/99 routed to controllers at app/controllers/articles_controller.rb app/controllers/comments_controller.rb just as it says at http://guides.rubyonrails.org/routing.html#nested-resources, with no special namespaces. But partials and forms become tricky. Note the … Read more
@ray, excellent discussion @jgerman, don’t forget that just because it’s REST, doesn’t mean resources have to be set in stone from POST. What you choose to include in any given representation of a resource is up to you. Your case of the the covers referenced separately is merely the creation of a parent resource (comic … Read more