Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@yar yar commented Apr 23, 2010

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

@chrisjacob

This comment has been minimized.

Copy link

@chrisjacob chrisjacob commented Apr 30, 2010

Thank you for this. Worked perfectly for me.

@pootsbook

This comment has been minimized.

Copy link

@pootsbook pootsbook commented May 28, 2010

You beauty. Perfect solution.

@TMorgan99

This comment has been minimized.

Copy link

@TMorgan99 TMorgan99 commented Jun 13, 2010

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

This comment has been minimized.

Copy link

@mattslay mattslay commented Jun 18, 2010

TMorgan99 -

It's:

bundle install

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Jun 25, 2010

Thanks for sharing this!!

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