Reputation: 173
How do I install rails 4.0, bleeding edge (master branch on git) on my Mac? Can I do it with RVM?
I'm doing this to start upgrading a project, not a new project.
Upvotes: 11
Views: 6478
Reputation: 857
rails 4 is coming!!!
gem install rails --version 4.0.0.beta1 --no-ri --no-rdoc
Upvotes: 25
Reputation: 16012
Ensure you are using a recent patch level of Ruby 1.9.3.
git clone https://github.com/rails/rails.git
ruby rails/railties/bin/rails new APPNAME --dev
cd APPNAME
bundle install
bundle exec rails s
This way bundler references gem sources from your local directory structure.
Upvotes: 0
Reputation: 3143
This is a solid answer
http://stufftohelpyouout.blogspot.com/2012/09/install-local-edge-rails-40-beta-and.html
Process stays the same more-or-less. You need to checkout rails from git and then use it to generate your new file.
the --pre flag should work soon enough :)
Upvotes: -1
Reputation: 11904
In your gemfile:
gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'arel', :git => 'git://github.com/rails/arel.git'
gem 'rack', :git => 'git://github.com/rack/rack.git'
Upvotes: 7