Rails 3 (Ruby 1.9.2 vs 1.8.6) and (MRI vs REE vs JVM) - comments / suggestions?

A look at creating a Rails 3 stack and trying to sort Ruby versions.

I'm very interested in the JVM concept, but I'm not 100% sure that it even applies to Rails 3; which means itโ€™s not easy to deploy only for the JVM if necessary.

Then heroku says there is an error in Ruby 1.9.1, but they donโ€™t say what kind of error it is if it is addressed to Ruby 1.9.2 - or what happens as a result of running Rails 3 on Ruby 1.8.6.

UPDATE:. The found heroku bug is indirectly associated with: "Note that Ruby 1.8.7 p248 and p249 have error marshalling that breaks Rails 3.0. Ruby Enterprise Edition has these fixes since release 1.8.7 -2010.02, though. Foreground 1.9 Ruby 1.9.1 cannot be used because it completely disconnects from Rails 3.0, so if you want to use Rails 3 with a 1.9.x jump of 1.9.2 for a smooth swim. "

Does anyone have any info / link on the topic?

Thanks!

+4
source share
2 answers

If you work on Windows, my personal recommendations come with JRuby. MRI (and 1.9.x and 1.8.x) has mountains of problems on windows, whether it is deployed in XP, Vista or Windows 7. I often do not develop Windows, but I teach Rails classes and that is my recommendation Windows students now. There were not many problems with JRuby at all, other than having to use a different database driver (jdbc gem version). RVM does not work on windows, but you can use pik (https://github.com/vertiginous/pik) to achieve many of the same goals.

+2
source

My advice is that if you are starting a new Rails 3 project, you should definitely consider starting it with Ruby 1.9.2. Heroku supports multiple stacks with the default, now Bamboo (the one that supports 1.9.2 as well as REE). If you are concerned about compatibility with the stone or something else, you can hedge your bets and use RVM and / or multiruby to run the test package through several versions of ruby โ€‹โ€‹so you can deploy either runtime.

Personally, I run the Rails 2 application on REE and the Rails 3 application on 1.9.2 and have not experienced any problems.

If you are not deploying to Heroku and setting up your own server, then I would manage your Ruby versions using RVM on your production server so that you can easily switch between versions if something does not work.

In short:

You can run Rails 2 and 3 applications on REE and Ruby 1.9.2.

+2
source

All Articles