spinlock spinlock - 5 months ago 20
Ruby Question

Can I rake the routes for a specific resource?

I've been grepping the output of

rake routes
forever and it just dawned on me that someone must know a better way to inspect routes. I have a resource in my
routes.rb
name
account_groups
:

resources :account_groups


Is there anyway to tell
rake routes
to only return the routes associated with this resource?

Thanks!

Answer

You can check for routes of specific controller:
rake routes CONTROLLER=account_groups

Comments