I'm porting an old rails 2.1.1 app to rails 4. It relies on several plugins that have no gem equivalents. How would I get these working in rails 4?
我正在将一个旧的rails 2.1.1 app移植到rails 4.它依赖于几个没有gem等价物的插件。我如何在轨道4中使用它们?
1 个解决方案
#1
3
As explained in the release note, you have two options
如发行说明中所述,您有两种选择
- Package the plugin as a gem
- Embed the plugin inside the /lib folder of your app
将插件打包为gem
将插件嵌入应用程序的/ lib文件夹中
I would personally use this particular event to review the list of plugins my app depends on. If the plugin has not been converted into a gem, there are several possible cases
我个人会使用此特定事件来查看我的应用依赖的插件列表。如果插件尚未转换为gem,则有几种可能的情况
- The plugin is unmaintained. A good reason to replace it.
- The plugin is no longer necessary, the feature may be provided (may be in a different shape) by Rails itself
- The plugin may not be necessary any longer. A good reason to replace it.
- If you really find a good reason to keep it and for whatever good reason there is no gem for that, use one of the solutions above.
插件没有维护。更换它的一个很好的理由。
不再需要该插件,Rails本身可以提供该特征(可以是不同的形状)
可能不再需要插件。更换它的一个很好的理由。
如果你真的找到一个很好的理由来保留它并且由于任何好的理由没有宝石,那么使用上面的解决方案之一。
#1
3
As explained in the release note, you have two options
如发行说明中所述,您有两种选择
- Package the plugin as a gem
- Embed the plugin inside the /lib folder of your app
将插件打包为gem
将插件嵌入应用程序的/ lib文件夹中
I would personally use this particular event to review the list of plugins my app depends on. If the plugin has not been converted into a gem, there are several possible cases
我个人会使用此特定事件来查看我的应用依赖的插件列表。如果插件尚未转换为gem,则有几种可能的情况
- The plugin is unmaintained. A good reason to replace it.
- The plugin is no longer necessary, the feature may be provided (may be in a different shape) by Rails itself
- The plugin may not be necessary any longer. A good reason to replace it.
- If you really find a good reason to keep it and for whatever good reason there is no gem for that, use one of the solutions above.
插件没有维护。更换它的一个很好的理由。
不再需要该插件,Rails本身可以提供该特征(可以是不同的形状)
可能不再需要插件。更换它的一个很好的理由。
如果你真的找到一个很好的理由来保留它并且由于任何好的理由没有宝石,那么使用上面的解决方案之一。