Porting from Rails 2.3.x to 3.x?

Does anyone have experience migrating from Rails 2.3.x to Rails 3.x?

Any mistakes you need to know or suggestions you could make?

Thank!

+3
source share
4 answers

There are many online resources related to this update. In my own experience, the most common problems are:

  • Incompatibility Gem . There are many gems that only work with Rails 3, and the jewels that used to work in Rails 2 could no longer work in Rails 3. Make sure you get the latest gem and that you are reading the documentation to ensure that the supported gems stones are supported.
  • : , , .
  • Ruby 1.8.7 Greater. Rails 3 Ruby 1.8.6. , Ruby 1.8.7. Ruby 1.9.x, , gem, , Rails 2 Rails 3.
  • Bundler. , . . Bundler Rails 3.
  • . / script/... Anymore: script: rails console, rails db rails generate.
  • . , .
+2
+3

rails_upgrade (https://github.com/rails/rails_upgrade), , Rails 3. .

0

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


All Articles