I am developing my admin panel for cms, and I want, for example, to download, images and articles. Each of these elements can be classified, so I have a “category” action on each controller (“Downloads, Images, and Articles”).
In the routes file, I have the following:
namespace :admin do resources :downloads resources :images resources :articles end
My problem is that the above code creates routes for the index, shows, edits, updates and destroys. Is there a way to add category action to all resources once without announcing it 3 times?
source share