javascript - JS into Rails Asset Pipeline -
my manifest rails asset pipeline looks this:
//= require jquery //= require jquery_ujs //= jquery-backstretch/jquery.backstretch.js
i have vendor directory follows:
vendor assets components jquery-backstretch jquery.backstretch.js
but it's not importing backstretch.js file @ error in page.
i have components added asset path follows:
config.assets.paths << rails.root.join("vendor", "assets", "components")
any ideas on how can js file used?
from comment above:
require
needed in front of jquery-backstretch
.
Comments
Post a Comment