wyc
wyc

Reputation: 55273

How to install Rails 4 (final) along with the latest version of Ruby via RVM?

I've found ways to install Rails 4 via RVM but all of them refers to the beta version.

How to install the final version along with the latest version of Ruby (via RVM)?

Upvotes: 12

Views: 6999

Answers (2)

fengd
fengd

Reputation: 7569

First you need to update your rvm to the latest stable version

rvm get stable

Then, you can check all available ruby versions by

rvm list known

It should display something like thisenter image description here

then install ruby 2.0 by

rvm install 2.0.0-p247

once it's done, install rails by

gem install rails --version 4.0.0

Upvotes: 5

Aguardientico
Aguardientico

Reputation: 7779

rvm get stable to get the last rvm versión

rvm install 2.0.0 to install ruby 2.0

rvm use 2.0.0 to use ruby 2.0

gem install rails to install rails 4.0

Upvotes: 24

Related Questions