如何将 Rails 升级到 4.2? [英] How to Upgrade Rails to 4.2?

查看:61
本文介绍了如何将 Rails 升级到 4.2?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将 Rails 应用程序从 3.2.12 正确升级到 4.2 ...

I Want to upgrade my Rails application properly from 3.2.12 to 4.2 ...

有人给我发送这个链接:http://edgeguides.rubyonrails.org/upgrading_ruby_on_rails.html

someone send me this link: http://edgeguides.rubyonrails.org/upgrading_ruby_on_rails.html

目前我正在尝试从 3.2.12 升级到 4.0 ......我正在等待第 5.4 步:

at the moment I'm trying to upgrade from 3.2.12 to 4.0 ... i'm hanging on step 5.4:

Rails 4.0 no longer supports loading plugins from vendor/plugins. 
You must replace any plugins by extracting them to gems and adding them to your Gemfile. 
If you choose not to make them gems, you can move them into, say, lib/my_plugin/* 
and add an appropriate initializer in config/initializers/my_plugin.rb.

好的,从供应商/插件复制到 lib 没问题……但是我必须如何设置初始值设定项?...

Okay thats no Problem to copy from vendor/plugins to lib ... but how do I have to set up the initializers? ...

推荐答案

初始化程序是在启动时执行的普通 ruby​​ 文件.它们位于 config/initializers

Initializers are plain ruby files that get executed on startup. They live in config/initializers

这篇关于如何将 Rails 升级到 4.2?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆