I'm creating a rails mountable engine plugin which uses the gem "jquery-rails". I added this code in .gemspec file
s.add_dependency "jquery-rails", "~> 3.0.1"
and run bundle install
, bundle update
. (BTW is this adding necessary? Since rails mountable engine already added "rails 4.0.1" which in turn required "jquery-rails 3.0.4" as its dependency from the start?).
In app/assets/javascript/mountable_engine_name/application.js
//= require jquery
//= require jquery-ujs
//= require_tree .
But when I run the server on test/dummy/ and access any template which uses the tag <%= javascript_include_tag "mountable_engine_name/application" %>
it's showing the error "couldn't find file 'jquery'".
I tried creating a brand new mountable engine plugin but it happens the same.
Did I do something wrong?
PS. Sorry for my English.
UPDATE
Actually it happens on all every manifest file which require jquery and jquery-ujs both in app/assets/javascript/ and test/dummy/app/assets/javascript/ .