meta
meta

Reputation: 173

Rails 4 edge install on mt lion

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

Answers (5)

gem install rails --version 4.0.0

Upvotes: 0

Jinzhao Huo
Jinzhao Huo

Reputation: 857

rails 4 is coming!!!

gem install rails --version 4.0.0.beta1 --no-ri --no-rdoc

Upvotes: 25

iltempo
iltempo

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

John Paul Ashenfelter
John Paul Ashenfelter

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

Zach Kemp
Zach Kemp

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

Related Questions