【问题标题】:Is gem installed? Error: undefined method best_in_place宝石安装了吗?错误:未定义的方法 best_in_place
【发布时间】:2013-09-03 11:31:57
【问题描述】:

我将best_in_place 添加到我的GemFile,运行bundle install,但gem 没有出现在显示“正在使用...”的列表中。但 best_in_place 确实显示在 gem list 中。

当我尝试在我的应用中使用 best_in_place 时,我得到了undefined method best_in_place

我确实有一个GemFile.lock

【问题讨论】:

    标签: ruby-on-rails best-in-place


    【解决方案1】:

    重启你的 Rails 服务器,如果你正在使用 Rails 4,添加 gem 'best_in_place', github: 'aaronchi/best_in_place' 进入你的 Gemfile 然后运行 ​​bundle install

    【讨论】:

    • 很好的参考
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-11-08
    • 2011-05-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多