How to set up ( Fedora php ruby on rails )

Monday, February 14, 2011

Rake Route(How to see routes of specific controller)

How to target specific controller in rake routes command


Most of time i need to look at my routes and as project increases so the list of routes and it's get confusing to find a specific routes using rake routes command so here is the answer


rake routes CONTROLLER=controller_name

For Example


rake routes CONTROLLER=posts

3 comments:

  1. Thanks for this tip ) I always forget it...

    ReplyDelete
  2. Note; you must specify pluralized controller name!

    ReplyDelete