[Rails] Re: Backstretch-Rails JS Stopped Working

2015-01-02 Thread David Williams
Jason Fb wrote in post #1165885: >> On Jan 1, 2015, at 4:46 PM, David Williams wrote: >> >> I was told that adding the file to the assets.rb precompiler is really >> no different than adding it to the application.js >> > > > That is not correct. Who told you that? > > It sounds like your app is pr

[Rails] Re: Backstretch-Rails JS Stopped Working

2015-01-01 Thread David Williams
I was told that adding the file to the assets.rb precompiler is really no different than adding it to the application.js Rails.application.config.assets.precompile += %w( backstretch-landing-index.js ) Even though this method isn't perfect, I'm still able to control which views are being effec

[Rails] Re: Backstretch-Rails JS Stopped Working

2015-01-01 Thread David Williams
I got it working. I had to remove the require statement from the application.js and add the file to assets pipeline directly. I also created a separate javascript file for the home page only. Now, it only shows on one page! -- Posted via http://www.ruby-forum.com/. -- You received this messa

[Rails] Re: Backstretch-Rails JS Stopped Working

2015-01-01 Thread David Williams
After adding it to the application.js file. It changed backgrounds for the entire application. I wish there was a way to constrain this function to fire only on the pages that I need to be on -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to

Re: [Rails] Re: Backstretch-Rails JS Stopped Working

2015-01-01 Thread Jason Fleetwood-Boldt
1) Are you having this problem in development or production? 2) Where did you put the jquery.backstretch.js file 3) you probably don't want to load that file from your layout, you probably want to load the application.js as instructed by the Gem instructions 4) did you read the Asset Pipeline

[Rails] Re: Backstretch-Rails JS Stopped Working

2015-01-01 Thread David Williams
Jason Fb wrote in post #1165836: > Asset pipeline doesn't work like this... check out the Asset pipeline > guide. you don't load your jquery libraries this way: > >> <= > > > >> >>$.backstretch([ >> their demo. >> To view this discussion on the web visit > https://groups.google.com/d/msgid/ru