Skip to content

Instantly share code, notes, and snippets.

@ihower
Created February 9, 2010 15:43
Show Gist options
  • Save ihower/299323 to your computer and use it in GitHub Desktop.
Save ihower/299323 to your computer and use it in GitHub Desktop.
#!/usr/local/bin/ruby
#
# This file was generated by RubyGems.
#
# The application 'railties' is installed as part of a gem, and
# this file is here to facilitate running it.
#
require 'rubygems'
version = "~> 2.0"
if ARGV.first =~ /^_(.*)_$/ and Gem::Version.correct? $1 then
version = $1
ARGV.shift
end
gem 'rails', version
load Gem.bin_path('rails', 'rails', version)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment