Using Rails 3 with Ruby 1.9

Can we use Ruby 1.9 and Rails 3 together? Last time I tried this Rails became angry and told me I couldn't (or shouldn't).

So, maybe I am missing the blog entry on this subject, but when will Ruby1.9 and Rails 3 play nice?

cf <http://rubyonrails.org/download&gt;

  "We recommend Ruby 1.8.7 or Ruby 1.9.2 for use with Rails."

Seems pretty clear. :slight_smile:

Carl Jenkins wrote:

Can we use Ruby 1.9 and Rails 3 together? Last time I tried this Rails became angry and told me I couldn't (or shouldn't).

So, maybe I am missing the blog entry on this subject, but when will Ruby1.9 and Rails 3 play nice?

Yeah...But use 1.9.2 and rvm

Rails Surfer wrote:

Carl Jenkins wrote:

Can we use Ruby 1.9 and Rails 3 together? Last time I tried this Rails became angry and told me I couldn't (or shouldn't).

So, maybe I am missing the blog entry on this subject, but when will Ruby1.9 and Rails 3 play nice?

Yeah...But use 1.9.2 and rvm

Sorry, but what is rvm?

(it was the 3rd hit here, though I'd wager it might be the first in your locale)

Felix

Carl Jenkins wrote:

Rails Surfer wrote:

Carl Jenkins wrote:

Can we use Ruby 1.9 and Rails 3 together? Last time I tried this Rails became angry and told me I couldn't (or shouldn't).

So, maybe I am missing the blog entry on this subject, but when will Ruby1.9 and Rails 3 play nice?

Yeah...But use 1.9.2 and rvm

Sorry, but what is rvm?

Ruby version manager

http://rvm.beginrescueend.com/

It´s not needed to install 1.9.2 but it can make life easier.

Rails Surfer wrote:

Sorry, but what is rvm?

rvm is a god-send. It lets you maintain multiple ruby installs and switch amongst them on command (among other things, like installed gem sets), and you should definitely employ it.

I found this link enormously helpful (mainly because I use Ubuntu 10.04)

Felix Schäfer wrote:

ruby version manager, it install serverral ruby versions in isolated environments so that you can have several version running with their own gem list and all, that way you can test new versions of rails if you want and not put your current system ruby environment in danger .

more info here

http://railscasts.com/episodes/200-rails-3-beta-and-rvm