I am using pace.js library and its documentation says, that I need to include their JS/CSS file as early as possible. http://github.hubspot.com/pace/ . I did it and now my application.html.erb looks this way:
<head>
<%= javascript_include_tag "pace.min" %>
<%= stylesheet_link_tag "pace", :media => "all" %>
<title>My site</title>
<%= csrf_meta_tags %>
<%= stylesheet_link_tag "application", :media => "all" %>
<%= javascript_include_tag "application" %>
</head>
But when I look at generated HTML I can see that pace is being included twice.
First time at the begining of <head> and second time in place of javascript_include_tag "application"
How to prevent it?