Ruby on Rails
Wednesday, March 16, 2016
On Wed, Mar 16, 2016 at 2:43 PM, Jose Blanco <blancoj@umich.edu> wrote:
I would like for this to be included in the head section of my rails app:<script type="text/javascript" src="https://abc/embed.js"/>How can I do this from app/assets/javascripts/application.js ?I tried this, but it did not work://= require https://abc/embed.js
Put it in the application layout instead, in app/views/layouts/application.html.erb
Only use the asset pipeline for assets you have in your app.
--
Thank you! Jose
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/d3f81858-d081-48b0-9e08-9e8cee24d20b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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/CAHUC_t9Qi2kO2OTNiErQctnCA8GVajwJ-1rpAd6g3Kkj_1%2BFcQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment