title: gmaps4rails map display
body: <p>I am new to Ruby on Rails and am trying to use the gmaps4rails gem.  The longitude and latitude show up automatically but the map is not appearing.  If I look at the page source info it seems like the map is being called and created so I'm not sure why it's not showing up.
  This can be seen here:</p>
  
  <pre><code>    &lt;script src="//maps.google.com/maps/api/js?v=3.8&amp;amp;sensor=false&amp;amp;client=&amp;   amp;key=&amp; amp;libraries=geometry&amp;amp;language=&amp;amp;hl=&amp;amp;region=" type="text/javascript"&gt;&lt;/script&gt;
      &lt;script src="//google-maps-utility-library-v3.googlecode.com/svn/tags/markerclustererplus/2.0.14/src/markerclusterer_packed.js" type="text/javascript"&gt;&lt;/script&gt;
  
      &lt;script type="text/javascript"&gt;
        Gmaps.map = new Gmaps4RailsGoogle();
        Gmaps.load_map = function() {
        Gmaps.map.map_options.auto_adjust = true;
        Gmaps.map.initialize();
        Gmaps.map.markers = [{"lat":40.8217303,"lng":-73.9551369},             {"lat":41.4925374,"lng":-99.9018131},{"lat":50.3429668,"lng":18.5540869}];
        Gmaps.map.markers_conf.do_clustering = true;
        Gmaps.map.create_markers();
        Gmaps.map.adjustMapToBounds();
        Gmaps.map.callback();
         };
  </code></pre>
  
  <p>Do I need to include some other files in my document to show the map?  And where would those documents be?  I am using Ruby 1.9.3 and Rails 3.2.12.
  I see this type of question has been asked and answered many times, but I haven't been able to get a solution from those answers. Thanks for any help.</p>
  
  <p>UPDATE:</p>
  
  <p>Here is my view:</p>
  
  <pre><code>            &lt;br /&gt;
              &lt;%= link_to 'New Bathroom', new_bathroom_path %&gt;
              &lt;%= gmaps4rails(@json) %&gt;
  </code></pre>
  
  <p>Model:</p>
  
  <pre><code>  acts_as_gmappable
  
        def gmaps4rails_address
        address
  </code></pre>
  
  <p>Controller:</p>
  
  <pre><code>    def index
       @bathrooms = Bathroom.all
    @json = Bathroom.all.to_gmaps4rails
      respond_to do |format|
        format.html # index.html.erb
        format.json { render :json =&gt; @bathrooms }
       end
       end
  </code></pre>
  
  <p>and application.html
           </p>
  
  <pre><code>       &lt;%= yield %&gt;
         &lt;%= yield :scripts %&gt;
       &lt;%= stylesheet_link_tag 'gmaps4rails' %&gt;
  
       &lt;/body&gt;
      &lt;/html&gt;
  </code></pre>
  
  <p>One thing I'm wondering is if I need to copy some assets to the app.  It says on the github site.</p>
  
  <p>"""""""""""""""""""""""""""""""""""""""""
  <code>gmaps4rails.css</code> will be copied to your app after you run the Rails generator. Be sure to require this file in your view for your first steps.</p>
  
  <p>For Rails 3.0.x or without assets pipeline:</p>
  
  <p>&lt;%= stylesheet_link_tag 'gmaps4rails' %>
  """""""""""""""""""""""""""""""""""""""""""</p>
  
  <p>Since I don't see the gmaps4rails.css file I wonder if that's the problem.  Thanks for helping.</p>
  
  <hr>
  
  <p>Post Debugger Details:</p>
  
  <p>Yeah that's true.  I have almost no experience with this stuff.  I got Firebug as you recommended and discovered that when I glide over the page the google scripts in the debugger never get highlighted.  I see that it did try to make a call to googleapis.com But the time for the different actions are zero, except for blocking and waiting.  This makes me think nothing was sent from the google server.  Under Get gmaps4rails.css it looks in my app/asset folder and has a 404 error.  I'm learning how to understand all this info, and if I'm correct it seems like the server request to google was blocked for some reason and it thinks my css file is in the asset folder.  If I am correct I really have no idea where to go from here.  Please tell me what info would help make this problem clearer.</p>