Is it possible to use Ruby 1.9 for Rails?

I read that Ruby 1.9 is much faster than 1.8, but it looks like it has not yet become a standard in the Rails community. What are the advantages and disadvantages of using Ruby 1.9 for new applications?

Edit to say: What I was confused about was that although it was not officially recommended, it looks like 2.3 compatibility. It's just interesting if people have real experience trying big sites in 1.9.

Also: Any big errors that can be found when starting the application in version 1.8 and later version 1.9.

+4
source share
4 answers

The current version of Rails (2.3.2) should work fine with Ruby 1.9, and Rails 3.0 should not have a problem.

Thus, adopting Ruby 1.9 for use with Rails is more a social issue than a technical one. There is a chicken and egg situation in which many Ruby plugins and Rails plugins are not compatible with Ruby 1.9, which forces developers not to use 1.9, which in turn leads to a reduction in the number of patches, etc. Etc....

Gregory Brown (author of the fantastic Ruby Shrimp gemstone) recently gave an excellent talk on GoRuCo called β€œ Where is Ruby Really located? Which solves these problems.

In short, Ruby 1.9 is a significant leap forward for the language and platform, and it is important that developers install it and fix their libraries and dependencies in order to provide faster adoption.

Is it possible that this is possible for your needs, depending on the dependencies of your application and on whether the time spent on creating the patches will be equal to the advantage of Ruby 1.9.

+3
source

No, not yet recommended. From Ruby on Rails: Download :

We recommend Ruby 1.8.7 for use with Rails.

Pros:

Speed ​​and other improvements that come with the new, faster version.

Minuses:

It is not supported, and as such you will get unpredictable results.

+4
source

The rails themselves work fine, the real problem is with gems and plugins

You can look at www.isitruby19.com to check what other peoples' problems are with them

+4
source

As far as I know, Rails runs fine (and fast) on 1.9. That's much better. However, the drawback is that the support for the plugin and the third-party library is still not quite there. Examine the needs of your application and make sure that you need 1.9 support for any plugins.

+3
source

Source: https://habr.com/ru/post/1286634/


All Articles