Question How do I install Rails 3 beta using bundler

 
  • Created:over 2 years ago
  • Status:resolved

I would like to play around with Rails 3 but do not want to mess up my gems.

The steps on the rails blog kind of scare me cause they will install new rails gems and create conflicts with my rails 2 install.

How do I get started with Rails 3 without installing the Rails gem?

 

1 Answers

votes newest oldest
 
  • Created:over 2 years ago
accepted answer

Run:

gem install bundler
mkdir testapp && cd testapp 

Create a file called Gemfile with the contents:

source 'http://gemcutter.org'
gem "rails", "3.0.0.beta"

Run:

bundle install
bundle exec rails .

Allow Rails to overwrite the Gemfile

Now all the rails commands will be available eg:

script/rails console
script/rails generate