Answer the question
In order to leave comments, you need to log in
How to include script with condition (IE < 9) in Rails?
I add the following piece to the head:
<!--[if lt IE 9]>
<%= javascript_include_tag 'html5shiv.min', 'data-turbolinks-track': 'reload' %>
<![endif]-->
<!--[if lt IE 9]>
<script src="/javascripts/html5shiv.js" data-turbolinks-track="reload"></script>
<![endif]-->
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question