Skip to content

add :Rroutes to visit the `config/routes.rb` file. #171

ldenman opened this Issue Jul 25, 2012 · 5 comments

4 participants

ldenman commented Jul 25, 2012

Every time that I use rails.vim I wonder why there is no :Rroutes command. Is there a reason that it does not exist?



tpope commented Jul 25, 2012

:Rinitializer goes there if the argument is omitted.

@tpope tpope closed this Jul 25, 2012
ldenman commented Jul 25, 2012

Hmmm, that's odd.

tpope commented Jul 26, 2012

I'll grant you "odd", it makes sense when you think of config/routes.rb as the penultimate initializer. I don't want a one-off navigation command.

graywh commented Jul 26, 2012

Also, you can create custom navigation commands. Rnavcommand routes config -glob= -default=routes.rb -suffix= would do the trick.

sunaku commented Oct 17, 2012

Here's a simpler implementation:

command Rroutes Rinitializer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.