我想将我的Rails应用程序从3.2.12正确升级到4.2 ......
有人发给我这个链接:http://edgeguides.rubyonrails.org/upgrading_ruby_on_rails.html目前我正试图从3.2.12升级到4.0 ......我挂在第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 ...但我如何设置初始化器? ......
答案 0 :(得分:1)
初始化程序是在启动时执行的普通ruby文件。他们住在config/initializers