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 

http://guides.rubyonrails.org/routing.html


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -