If I load dojo from Google CDN, I'd like a fallback. The easiest way to do
so is by putting a script tage right after it:
<script>typeof(dojo) === "undefined" && document.write(unescape('%3Cscript
But the dojo library should go in your /vendors/assets/ not in your
/public/assets. To get it served, I need to play with the
config.assets.precompile if I understand well. Anyway, it all seem very
hacky too me.
What would you think of being able to do something like that:
That way rails take care of putting the extra <script> tag for us with the test and most importantly, can precompile the file and set the good path.
What do you think?
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/R6SI2KVerccJ.
To post to this group, send email to firstname.lastname@example.org.
To unsubscribe from this group, send email to email@example.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.