I’ve been trying a few different editors for working with Rails, including TextMate, Aptana and my trusty vim. I was leaning towards TextMate (bought a license too) but since I also develop on Ubuntu and would like to standardize tools to a certain extent, I decided to see if I could supercharge vim. The answer is a resounding YES.
This plugin is awesome. Because it is aware of the Rails app structure, you can do cool things like jumping between files using commands like :Rcontroller User which will load the UserController or :Rview places/new which loads /app/views/places/new.html.erb. And, when your cursor is over a reference like a has_many line in a model if you key in gf, it will jump to the file where that reference is defined.
Or, if you’re looking at specific action in a controller, the command :R will jump you to the view for that action (and vice versa). It even supports refactoring and neato stuff like that. These are just a few examples, try it out and read the documentation to see how powerful it is!
- BROWSE / IN TIMELINE
- « Aha! The trick to getting custom named routes!
- » Authlogic Perishable Token changes and breaks emails
- BROWSE / IN ruby on rails
- « Aha! The trick to getting custom named routes!
- » Authlogic Perishable Token changes and breaks emails
SPEAK / ADD YOUR COMMENT
Comments are moderated.
