Require-js commonly uses an attribute called "data-main" on the script tag. Is there a way to tell Rails' javascript tag helpers to add it, or should I just do it the old-fashioned way?
<%= javascript_include_tag 'application', :'data-main' => 42 %>
renders as :
<script data-main="42" src="/javascripts/application.js?1301333790" type="text/javascript"></script>
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