Sha256: 506c5676af02756a60c6d9cbb098ce6c55d0478637bca4b20085f82e365e9c4c

Contents?: true

Size: 710 Bytes

Versions: 3

Compression:

Stored size: 710 Bytes

Contents

<%= javascript_include_tag "application" %>

<%# Append your own using content_for :javascripts %>
<%= yield :javascripts %>

<%# asynchronous google analytics: mathiasbynens.be/notes/async-analytics-snippet %>
<%# Looks for google_account_id first in ENV['GOOGLE_ACCOUNT_ID'] then in config/html5_rails.yml %>
<% if !google_account_id.blank? %>
  <script>
    //<![CDATA[
      var _gaq=[['_setAccount','<%= google_account_id %>'],['_trackPageview']];
      (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
      g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
      s.parentNode.insertBefore(g,s)}(document,'script'));
    //]]>
  </script>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
html5-rails-0.0.7 app/views/application/_javascripts.html.erb
html5-rails-0.0.6 app/views/application/_javascripts.html.erb
html5-rails-0.0.5 app/views/application/_javascripts.html.erb