2013-10-16 104 views
0

我试图在我的Rails应用程序安装设计,并运行该命令时:rails generate devise_install下面的消息出现了:什么是Rails弃用警告?

DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! 
Support for these plugins will be removed in Rails 4.0. Move them out and 
bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* 
and config/initializers/myplugin.rb. See the release notes for more on 
this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been- 
released. (called from <top (required)> at /Users... 

有人可以帮助我了解如何(尽可能详细,将不胜感激)继续?

谢谢。

回答

0

警告说,插件功能在轨4.0已被删除,所以尽量使用宝石,而不是插件

0

只是想补充一点,如果你在Heroku上部署(可能是其他主机,不知道,我只在Heroku上看到过),即使您没有供应商/插件文件夹,您仍可能会遇到此错误。

这是因为注入的Heroku这种宝石:

'rails_12factor' 

这反过来又安装这些宝石2:

rails_serve_static_assets (0.0.1) 
rails_stdout_logging (0.0.3) 

这似乎是触发此警告的人。

我意识到这可能不是你的情况,但只是想在这里发布给在这种情况下找到这篇文章的其他人。