Permalink
Browse files

note on adding google maps script

  • Loading branch information...
1 parent ecbbc82 commit ed1d4388a4de0e0c74c14b2d3b75a71f1a506a65 @kristianmandrup committed Oct 29, 2012
Showing with 11 additions and 0 deletions.
  1. +11 −0 README.md
View
@@ -20,6 +20,17 @@ Add to javascript manifest file, fx `application.js`
//= require gmaps-autocomplete
```
+And include the google maps script before `application.js`, fx in your layout file:
+
+See [google maps and RoR](http://stackoverflow.com/questions/7466872/google-maps-and-ror-3-1)
+
+*application.html.erb*
+
+```erb
+<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
+<%= javascript_include_tag "application" %>
+```
+
## Initialize
```javascript

0 comments on commit ed1d438

Please sign in to comment.