Skip to content

Commit

Permalink
Adding :js holder to write js in head outside document.ready. Also li…
Browse files Browse the repository at this point in the history
…nking to Google Maps V3 API.
  • Loading branch information
bamnet committed Jun 1, 2010
1 parent 65666ae commit 6664ec4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<title>Geo</title>
<%= stylesheet_link_tag :all %>
<%= javascript_include_tag :defaults %>
<%= javascript_include_tag "http://maps.google.com/maps/api/js?sensor=false" %>
<%= csrf_meta_tag %>
<% if content_for?(:js_ready) %>
<script type="text/javascript">
Expand All @@ -12,6 +13,11 @@
});
</script>
<% end %>
<% if content_for?(:js) %>
<script type="text/javascript">
<%= yield(:js) %>
</script>
<% end %>
</head>
<body>

Expand Down

0 comments on commit 6664ec4

Please sign in to comment.