开发者

rails 2 to rails 3 [closed]

开发者 https://www.devze.com 2023-02-16 09:24 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be re开发者_JAVA百科opened, visit the help center. Closed 11 years ago.

how to upgrade a rails 2 plugin to rails 3?


This handbook will tell you exactly what to do:

http://www.railsupgradehandbook.com/

Upgrading a legacy rails 2 -3 is a tedious task ... many errors will arouse especially if the application is big and old. I would also suggest you watch railscast episodes 225,226 and 226.

Good luck :)


I recommend you this tutorial:

  • http://railscasts.com/episodes/225-upgrading-to-rails-3-part-1
  • http://railscasts.com/episodes/226-upgrading-to-rails-3-part-2
  • There are a part 3 too


There is a plugin available for upgrading rails version. Try this:

https://github.com/rails/rails_upgrade


Normally it's not that hard to upgrade Rails 2 app to Rails 2. Here is a sample guide:

http://www.railsdispatch.com/posts/upgrading-a-rails-2-app-to-rails-3

The guidelines that applies to apps should apply to plugins as well


If you want to upgrade a 2.x app to 3, there is an episode in Railscast Upgrading to Rails 3 Part 1 which explains about rails_upgrade plugin that help to determine what needs upgrading.

To upgrade plugins to Rails 3.0 http://boldr.net/upgrade-plugins-gems-rails-3


i think you can't upgrade the rails 2 plugin to rails 3 plugin. You can always change the structure of the code suitable to rails 3 coding but that doesn't mean upgrade. You might need to check out the repository if you could find the version suitable to rails 3 for that plugin


You can find a peepcode for that : https://peepcode.com/products/rails-3-upgrade-handbook-pdf

Or the railscasts is very nice too

0

精彩评论

暂无评论...
验证码 换一张
取 消