【问题标题】:removing rails plugins from project从项目中删除 Rails 插件
【发布时间】:2012-04-02 10:10:09
【问题描述】:

我在从 rails 3.1 项目升级的 rails 3.2 项目中遇到此弃用错误:

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/01/04/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/Rakefile:7)

我正在尝试消除此错误,但我似乎无法找到该插件。我已经从 vendor/plugins 中删除了插件。

【问题讨论】:

  • 所以您的供应商/插件直接完全为空?

标签: ruby-on-rails plugins deprecated


【解决方案1】:

如果您的供应商/插件完全为空,那么我敢打赌您正在部署到 Heroku。作为部署过程的一部分,Heroku 将插件注入到您的应用程序中。查看 this Stackoverflow answer 了解 Heroku 对此问题的实际回应。

【讨论】:

    猜你喜欢
    • 2013-11-11
    • 2014-03-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-06-29
    • 2021-10-19
    • 1970-01-01
    相关资源
    最近更新 更多