Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save danieljohnmorris/403207 to your computer and use it in GitHub Desktop.
Save danieljohnmorris/403207 to your computer and use it in GitHub Desktop.
r3 app tpl - use edge rails
# usage (in app dir):
# rake rails:template LOCATION=http://gist.github.com/403207.txt
### Append edge rails lines to end of Gemfile
# get existing file
gemfile_contents = File.readlines 'Gemfile'
# uncomment edge rails statement (line #6)
gemfile_contents[5].sub!('#', '').lstrip!
# overwrite existing file
File.open('Gemfile', 'w') do |gemfile_out|
gemfile_out.write(gemfile_contents.join)
end
# refresh rails version
run "bundle install"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment