How do you include a javascript file located in vendor/assets/javascripts in a single view file (NOT in application.js) ?
Some kind of javascript_include_tag
? Please help me with syntax
I have tried the following and it doesn't work:
Thank you
<%= javascript_include_tag "your_file" %>
If you're trying to include respond.js
, you could check out the respond_rails gem, which will allow you to include this in your view:
<%= respond_include_tags %>
In your views of course
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With