Reputation: 153
Help to understand what the problem is - add to the project 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();
Error:
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'
Upvotes: 0
Views: 177
Reputation: 1716
In order for rails
to pick up the vendors of your newly installed gems
you have to restart the server.
Upvotes: 1