Rails: same controller for multiple routes -
i have articlecontroller route resources :articles , routes this
http://localhost:3000/articles i need same controller handle crud actions below
http://localhost:3000/personal/articles http://localhost:3000/stuff/articles so 3 above routes should handled article controller article crud actions. how can that?
resources :articles scope '/personal' resources :articles end scope '/stuff' resources :articles end
Comments
Post a Comment