title: Rails don't load google maps javascript
body: <p>I was trying to load a simple google map in my rails application.</p>
  
  <p>The problem is that the web page show only an empty web page.</p>
  
  <p>Here is my index.html.erb</p>
  
  <pre><code>&lt;script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="http://www.google.com/jsapi"&gt;&lt;/script&gt;
  
  &lt;%= javascript_include_tag 'testmap.js' %&gt;
  
  
  &lt;body onload="initialize(); "&gt;
  
  &lt;div id="map_canvas"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>This is my testmap.js which is in "public/javascripts":</p>
  
  <pre><code>var map;
  function initialize() {
  
      var chicago = new google.maps.LatLng(41.850033, -87.6500523);
  
      map = new google.maps.Map(document.getElementById('map_canvas'), {
        center: chicago,
        zoom: 11,
        mapTypeId: 'roadmap'
      });
    }
  </code></pre>
  
  <p>The page displayed is completely empty, except for the code loaded from application.html.erb</p>
  
  <p>I hope that you can help me.</p>
  
  <p>Thank you</p>