Ruby on rails 为什么我会收到关于Rails2.3风格插件的弃用警告?

Ruby on rails 为什么我会收到关于Rails2.3风格插件的弃用警告?,ruby-on-rails,heroku,plugins,asset-pipeline,deprecation-warning,Ruby On Rails,Heroku,Plugins,Asset Pipeline,Deprecation Warning,我有一个带有/javascript和/plugins的供应商目录/directgory,但是它们是空的,所以我也删除了它们 我做了git add--all并按下了删除按钮,但仍然收到警告消息: 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

我有一个带有/javascript和/plugins的供应商目录/directgory,但是它们是空的,所以我也删除了它们

我做了git add--all并按下了删除按钮,但仍然收到警告消息:

       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 /tmp/build_97dea2eb
-3f5c-4dc6-9455-2f0aa0cab7de/Rakefile:7)
       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 /tmp/build_97dea2eb
-3f5c-4dc6-9455-2f0aa0cab7de/Rakefile:7)
       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 /tmp/build_97dea2eb
-3f5c-4dc6-9455-2f0aa0cab7de/Rakefile:7)
       DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move the
m 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 /tmp/build_97dea2eb
-3f5c-4dc6-9455-2f0aa0cab7de/Rakefile:7)
弃用警告:供应商/插件中有Rails 2.3风格的插件!对这些插件的支持将在Rails 4.0中删除。将它们移出并打包到您的Gemfile中,或者将它们作为lib/myplugin/*和config/initializers/myplugin.rb折叠到您的应用程序中。有关这方面的更多信息,请参阅发行说明:http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (从at/tmp/BUILD972eb调用)
-3f5c-4dc6-9455-2f0aa0cab7de/Rakefile:7)
弃用警告:在供应商/插件中有Rails 2.3风格的插件!对这些插件的支持将在Rails 4.0中删除。将它们移出并打包到您的Gemfile中,或者将它们作为lib/myplugin/*和config/initializers/myplugin.rb折叠到您的应用程序中。有关这方面的更多信息,请参阅发行说明:http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (从at/tmp/BUILD972eb调用)
-3f5c-4dc6-9455-2f0aa0cab7de/Rakefile:7)
弃用警告:在供应商/插件中有Rails 2.3风格的插件!对这些插件的支持将在Rails 4.0中删除。将它们移出并打包到您的Gemfile中,或者将它们作为lib/myplugin/*和config/initializers/myplugin.rb折叠到您的应用程序中。有关这方面的更多信息,请参阅发行说明:http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (从at/tmp/BUILD972eb调用)
-3f5c-4dc6-9455-2f0aa0cab7de/Rakefile:7)
弃用警告:在供应商/插件中有Rails 2.3风格的插件!对这些插件的支持将在Rails 4.0中删除。移动
我将它们取出并打包到您的GEM文件中,或者将它们作为lib/myplugin/*和config/initializers/myplugin.rb折叠到您的应用程序中。请参阅发行说明
有关这方面的更多信息:http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (从at/tmp/BUILD972eb调用)
-3f5c-4dc6-9455-2f0aa0cab7de/Rakefile:7)
什么是

git ls-files vendor/*

表演?如果它显示文件在那里,那么你仍然有文件在那里

如果您使用的是Rails 3,那么Heroku会在部署时将插件注入到您的代码中——您可以通过添加

gem rails_12factor 
到您的gemfile,绑定、提交和重新打包。这是有案可查的