将插件从Rails 2迁移到Rails 3

时间:2021-02-27 22:25:46

I have a few plugins in my Rails 2 app, such as Recaptcha or Auto_complete. After I have successfully migrated everything else, is there a quick way to migrate all of the plugins?

我的Rails 2应用程序中有一些插件,例如Recaptcha或Auto_complete。在我成功迁移其他所有内容之后,是否有一种快速迁移所有插件的方法?

My first thought is to delete all of them, and reinstall because the last time I touched Rails 2.3.2 it used Protytype and not jQuery.

我的第一个想法是删除所有这些,并重新安装,因为上次我触及Rails 2.3.2它使用Protytype而不是jQuery。

1 个解决方案

#1


0  

Indeed. Deleted 'em all, and worked with Gemfile - added the gems into it, like recaptcha, and autocomplete. So many things were changed, for example, Jquery replaced the Prototype etc. But after some minor but numerous fixes, it all seems to work fine.

确实。删除所有人,并使用Gemfile - 将宝石添加到其中,如recaptcha和自动完成。很多东西都被改变了,例如,Jquery取代了Prototype等。但经过一些小的但很多修复之后,这一切似乎都运行良好。

#1


0  

Indeed. Deleted 'em all, and worked with Gemfile - added the gems into it, like recaptcha, and autocomplete. So many things were changed, for example, Jquery replaced the Prototype etc. But after some minor but numerous fixes, it all seems to work fine.

确实。删除所有人,并使用Gemfile - 将宝石添加到其中,如recaptcha和自动完成。很多东西都被改变了,例如,Jquery取代了Prototype等。但经过一些小的但很多修复之后,这一切似乎都运行良好。