1👍
✅
If the file name ends with .js
you are fine, no need to deal with <%=
. However if the file ends with .js.erb
, you are going to have problems.
Considering you don’t need ERB
in this case (you don’t use it at all), I highly suggest renaming the file to end with .js
Source:stackexchange.com