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

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -