Ruby on Rails安装gem best_in_place

时间:2016-01-28 15:17:58

标签: ruby-on-rails

帮助了解问题所在 - 添加到项目best_in_place gem。的Gemfile:

gem 'best_in_place', '~> 3.0.1'

的application.js:

//= require jquery
//= require jquery_ujs   
//= require best_in_place
//= require jquery-ui
//= require best_in_place.jquery-ui
//= require bootstrap-sprockets
//= require turbolinks
//= require_tree .

tasks.coffe:

jQuery ->
      $('.best_in_place').best_in_place();

错误:

Sprockets::FileNotFound in Tasks#index

Showing /Users/alexandr.dmitrenko/tasklist/app/views/layouts/application.html.erb where line #6 raised:

couldn't find file 'best_in_place' with type 'application/javascript'

screenshot

0 个答案:

没有答案