> On Jan 1, 2015, at 4:46 PM, David Williams <lists@ruby-forum.com> 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?
> 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.
It sounds like your app is pretty small. The benefits of the Asset Pipeline are for apps that have much more javascript
----
Jason Fleetwood-Boldt
tech@datatravels.com
http://www.jasonfleetwoodboldt.com/writing
All material © Jason Fleetwood-Boldt 2014. Public conversations may be turned into blog posts (original poster information will be made anonymous). Email jason@datatravels.com with questions/concerns about this.
--
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/FEF01D70-FF7C-4C72-B235-E43ABE951846%40datatravels.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment