public
Last active

See the routes for a controller

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
:.Rake
 
When you're in a controller. This will do a
routes CONTROLLER=...
 
so you can see the routes specific to that controller. Brilliant!
 
This ability comes from the Rails.vim plugin.
 
I've got this in my .vimrc:
 
nmap <leader>r :Rake<CR>
nmap <leader>R :.Rake<CR>
 
to make it easier to use :Rake and :.Rake.

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.