gpt4 book ai didi

jquery - 找不到文件 'best_in_place.purr'

转载 作者:行者123 更新时间:2023-12-03 23:03:53 25 4
gpt4 key购买 nike

我正在使用best_in_place gem 并根据说明,为了使用 jquery.purr 实现优雅的错误处理,我所要做的就是将其添加到我的 application.js 中:

//= require best_in_place.purr

我这样做了,但我不断收到此错误(多次重新启动服务器后):

couldn't find file 'best_in_place.purr'
(in myapp/app/assets/javascripts/application.js:19)

这就是我的 application.js 的样子:

//= require jquery
//= require jquery.ui.all
//= require jquery_ujs
//= require twitter/bootstrap
//= require turbolinks
//= require best_in_place
//= require best_in_place.purr
//= require_tree .

想法?

无论如何,在尝试添加 .purr 之前,我已经进行了 best_in_place 工作。因此,我什至将其从 Gemfile 中删除,运行 bundle,然后将其放回去并重新运行 bundle - 但仍然没有骰子。

最佳答案

harleyttd已回答Github repo .

他说:

i think it's because you use the gem release version (via gem 'best_in_place') which doesnt include best_in_place.purr yet. try gem 'best_in_place', github: 'bernat/best_in_place' instead.

another way is to copy best_in_place.purr from the repo over to a best_in_place.custom in your app and customize it to your own needs. it will allow you to easily debug if things aren't showing up as expected as well

这实际上对我有用。

关于jquery - 找不到文件 'best_in_place.purr',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12812050/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com