Skip to content

Instantly share code, notes, and snippets.

@wayneeseguin
Created February 5, 2010 18:21
  • Star 19 You must be signed in to star a gist
  • Fork 46 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save wayneeseguin/296055 to your computer and use it in GitHub Desktop.
This example shows how to setup an environment running Rails 3 under 1.9.2 with a 'rails3' gem set.
∴ rvm update --head
# ((Open a new shell)) or do 'rvm reload'
# If you do not already have the ruby interpreter installed, install it:
∴ rvm install 1.9.2
# Switch to 1.9.2-head and gemset rails3, create if it doesn't exist.
∴ rvm --create use 1.9.2@rails3
# Install Rails 3 final
∴ gem install rails
# Check to see we now have Rails 3
∴ rails --version
Rails 3.0.0
@yar
Copy link

yar commented Apr 23, 2010

I had to update macports packages, otherwise step 2 failed.

@chrisjacob
Copy link

Thank you for this. Worked perfectly for me.

@pootsbook
Copy link

You beauty. Perfect solution.

@TMorgan99
Copy link

gem install rails --pre --no-ri --no-rdoc

  • The rails gem pulls in the bundler gem. When you get to your new app, run bundler install to complete

rails new shiny-app
bundler install

  • and sqlite3 will appear

@mattslay
Copy link

TMorgan99 -

It's:

bundle install

@DixcomWeb
Copy link

Thanks for sharing this!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment