Skip to content

Instantly share code, notes, and snippets.

@TimFletcher
Created January 27, 2012 20:00
Show Gist options
  • Save TimFletcher/1690634 to your computer and use it in GitHub Desktop.
Save TimFletcher/1690634 to your computer and use it in GitHub Desktop.
Installing Rails with rbenv and bundler
# Install rails 'globally' for a ruby version
RBENV_VERSION=1.9.2-p290 rbenv exec gem install rails
# We're installing gems into vendor/bundle so don't run bundler when creating a new rails project
RBENV_VERSION=1.9.2-p290 rbenv exec rails new my_project --skip-bundle
# Install gems
cd my_project
rbenv local 1.9.2-p290
bundle install --path vendor/bundle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment