Ruby on Rails Thursday, September 24, 2015

I am having a go, for the first time, at making a gem which is an
engine. I have some javascript files which I have put in the
gem/app/assets/javascript. I can access those from the app but only
if I require them from the apps application.js. So if I have two js
files in the gem, say f1.js and f2.js, then in the apps application.js
I have to put
//= require f1
//= require f2

I have not been able to find a way to avoid having to require them all
individually. Is this possible?

Colin

--
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/CAL%3D0gLsaW_Koe9NXxwUaiX7c5Fjep-6JLevzui7qEZECq9qE3A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment