Last Updated: February 25, 2016
·
470
· ndbroadbent

Open files generated by 'rails generate' in your editor

Give Rails 3 generators an --editor option, which will open all generated files in your editor. Just run this command from your app directory:

curl https://gist.github.com/raw/4342095/rails -o script/rails

See my blog post for more details, including instructions to set it up globally for all Rails 3 apps.