What version of rails should I use for a new project

I worked with rails 2.3.5. I am going to start a new project on rails. Should I continue to use an earlier version or should I jump onto rails> 3? If so, what is the more stable version?

+4
source share
3 answers

It is better to use rails version 3.0.x, because these days many new plugins (for example, active_reload ) are only for the 3.x version.

3.1.x has many interesting features (such as an asset pipeline, saas integration, coffescript integration, etc.), but its still a candidate for release, and I ran into some problems when using it. I think we need to wait for the stable version 3.1.x.

I used 3.0.7 for a while and found that it is very stable. 3.0.10 has recently been released, and you can easily upgrade it to version 3.0.7 anytime in the future.

If you are stuck in version 2.x, you will be missing interesting features, as mentioned here: http://net.tutsplus.com/tutorials/ruby/5-awesome-new-rails-3-features/

+5
source

For a new project, I would use Rails 3.1 or a little more stable, 3.0.7. There are some notable differences compared to 2.3, but they will be supported for longer, and most new gemstone designs and documentation are being written for Rails 3.

+2
source

You should definitely NOT use 2.3 before.

The Rails framework is steadily improving, and if there is a flaw, then it can be a pain to upgrade from version to version, especially regarding major version changes that introduce tons of lagging incompatibilities.

Why don't you want to get into a hole on the go.

Another problem is how ready and mature ecosystems are (rubies, popular gem packs, etc.). This allows you to consider whether to start with release 3.0.10 or 3.1.

It turns out that the vast majority of gems working with Rails 3.0 work fine with Rails 3.1.

A small flaw is that 3.1 is still in candidate status, but everything is ready for the final release, and this should take several days or a maximum of a couple of weeks (today is August 25, 11).

I highly recommend you start all new applications with 3.1. This is what I do.

+1
source

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


All Articles