Rake Routes for a Single Controller

You can list routes in your Rails application with:
rake routes
If in-case you were looking for some specific route and grep doesn't solve your problems
rake routes | grep 'users'
Here is a tip which you can try
rake routes CONTROLLER=controller_name

Comments

Popular posts from this blog

Interview Question on Ruby on Rails

Inserting and Moving elements inside Ruby Array