title: Google Maps API with Rails 3.0
body: <p>I need some help,showing a map inside my rails 3.0 pages
  I fond cartographer in the stack overflow post 
     <a href="https://stackoverflow.com/questions/2557174/google-maps-api-with-rails-3-0">Google Maps API with Rails 3.0</a></p>
  
  <p>I followed the instructions from <a href="https://github.com/parolkar/cartographer" rel="nofollow noreferrer">https://github.com/parolkar/cartographer</a>. 
  In addition I created a cartographer.yml and saved it in the rails_app/config directory with  the Google keys for localhost:3000 and localhost:3000/gmap/</p>
  
  <p>my controller looks like:</p>
  
  <pre><code> def show
      @place = Place.find(params[:id])
  
      @map = Cartographer::Gmap.new( 'map' )
      @map.zoom = :bound
      marker1 = Cartographer::Gmarker.new(:name=&gt; "taj_mahal", :marker_type =&gt; "Building",
                :position =&gt; [27.173006,78.042086],
                :info_window_url =&gt; "/url_for_info_content")
      marker2 = Cartographer::Gmarker.new(:name=&gt; "raj_bhawan", :marker_type =&gt; "Building",
                :position =&gt; [28.614309,77.201353],
                :info_window_url =&gt; "/url_for_info_content")
  
      @map.markers &lt;&lt; marker1
      @map.markers &lt;&lt; marker2
  
  
      respond_to do |format|
        format.html # show.html.erb
        format.xml  { render :xml =&gt; @place }
      end
    end
  </code></pre>
  
  <p>and I got...</p>
  
  <p>undefined method `name' for :normal:Symbol</p>
  
  <p>Extracted source (around line #44):</p>
  
  <pre><code>41: &lt;/p&gt;
  42: 
  43: &lt;%= raw Cartographer::Header.new.to_s %&gt;
  44: &lt;%= raw @map.to_html %&gt;
  45: 
  46: &lt;%= link_to 'Edit', edit_place_path(@place) %&gt; |
  47: &lt;%= link_to 'Back', places_path %&gt;
  </code></pre>
  
  <p>Thanks ...</p>