What is the best way to upgrade a version of Rails?

The application I'm working on was launched with Rails 3.0.6, I believe that 3.0.7 is available, and 3.1 is just around the corner.

I understand that 3.1 is likely to have some violations that require proper reading of the release notes, etc., before trying to update the project.

My question, however, is best practice for xxx updates and xx updates? Should they be treated differently? Without breaking changes, is it better to create a new project each time and add changed files?

Rich

+3
source share
2 answers

The best way is to always specify Rails and other versions of Gem in your Gemfile.

gem 'rails', '3.0.7'

, , . , , - . Rails , . , , .

+3

.

, , Rails, - . : , .. , . , , , , , 2.3 Ruby 1.8.7.

, Rails - , . , , , , .

, - , - . , , , , Rails. , , .

TL; DR

  • - , - , .
  • Rails ( !)
+1
source

All Articles