title: Ruby on Rails, form_remote_tag, and Google Maps API
body: <p>I am trying to add Google Maps to my page using YM4R/GM.  As a regular submit using <code>form_tag</code> everything works, so I know I didn't mess that part up.</p>
  
  <p>But using <code>form_remote_tag</code> I end up with nothing inside my update div. I tested with rendering text so the right method is being executed and YM4R/GM is returning the Google Maps KML.  But the map is not being displayed.</p>
  
  <p>My form tag:</p>
  
  <pre><code>&lt;% form_remote_tag(:url =&gt; {:controller =&gt; "home", :action =&gt; "search"}, :update =&gt; "map_div") do %&gt;
  </code></pre>
  
  <p><br/></p>
  
  <p>The search method specified as the form's action:</p>
  
  <pre><code>def search
      location = GeoKit::Geocoders::MultiGeocoder.geocode(params[:address])
      @map = GMap.new("map_div")
      @map.control_init(:large_map =&gt; true,:map_type =&gt; true)
      @map.center_zoom_init([location.lat,location.lng],11)
      render :partial =&gt; 'map'
  end
  </code></pre>
  
  <p>Is it correct to place the div to be updated inside of a partial, and then render that partial?  </p>
  
  <p>Am I overcomplicating this, or going about it the wrong way?  I know the YM4R/GM code is being executed as I see Google's KML output.  And I wonder if the problem is related the XML/KML response?  Is Rails interpreting the response as XML rather than HTML?</p>