Skip to content

Instantly share code, notes, and snippets.

@imthatcarlos
Created December 4, 2016 05:04
Show Gist options
  • Save imthatcarlos/798653d14048410bdf713f5acc8bc082 to your computer and use it in GitHub Desktop.
Save imthatcarlos/798653d14048410bdf713f5acc8bc082 to your computer and use it in GitHub Desktop.
Create a new rails application with a specific version
# make directory for new rails app
mkdir app
cd app
# specify ruby version
echo 2.3.1 > .ruby-version
# initialize bundler (creates Gemfile)
bundler init
# specify rails version in Gemfile
gem "rails", "4.2.5"
# create rails app using specified version, and overwrite current Gemfile
bundle exec rails new . --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment