Skip to content

Instantly share code, notes, and snippets.

@duff
Created March 10, 2010 19:10
Show Gist options
  • Select an option

  • Save duff/328225 to your computer and use it in GitHub Desktop.

Select an option

Save duff/328225 to your computer and use it in GitHub Desktop.
See the routes for a controller
:.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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment