ビューの 1 つに Best In Place Gem を実装しようとしています。しかし、サンプル ボタンをクリックしても何も起こらず、Chrome インスペクトでエラーが表示されます。
更新 ここで例を見ることができます -- >
https://fierce-meadow-1536.herokuapp.com/users/10/common_apps/6/edit
username: tester@tester.com
password: 123123
--
Uncaught TypeError: Property 'jQuery' of object [object Object] is not a function best_in_place.js?body=1:52
Uncaught TypeError: Property 'jQuery' of object [object Object] is not a function best_in_place.js?body=1:595
参照中の特定の JavaScript (#comment の上)-->
this.oldValue = this.isNil() ? "" : this.element.html();
this.display_value = to_display;
jQuery(this.activator).unbind("click", this.clickHandler);
#Uncaught TypeError: Property 'jQuery' of object [object Object] is not a function
this.activateForm();
this.element.trigger(jQuery.Event("best_in_place:activate"));
},
これは私の Application.js ファイルです --
//= require jquery
//= require jquery_ujs
//= require chosen-jquery
//= require jquery_nested_form
//= require best_in_place
//= require_tree .
私の見解 -
== best_in_place @common_app, :cover_letter, :path => user_common_app_path(@user,@common_app), :type => :textarea
ユーザー.js.コーヒー
jQuery ->
$('.best_in_place').best_in_place()
何が起こっている?