adding a script to to a rails application

I would like for this to be included in the head section of my rails app:

How can I do this from app/assets/javascripts/application.js ? I tried this, but it did not work: //= require https://abc/embed.js Thank you! Jose

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.