Ruby on Rails Thursday, January 1, 2015

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 effected by the plugin. The original method effected all
controllers. I would have needed to block the script like you said on
all views with the pattern that you're using.

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/1a642639edc5754691f0036fa3fd75fb%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment