spinlock spinlock - 1 year ago 86
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

resources :account_groups

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


Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download