Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3954040
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T02:02:54+00:00 2026-05-20T02:02:54+00:00

I am trying to add Google Maps to my page using YM4R/GM. As a

  • 0

I am trying to add Google Maps to my page using YM4R/GM. As a regular submit using form_tag everything works, so I know I didn’t mess that part up.

But using form_remote_tag 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.

My form tag:

<% form_remote_tag(:url => {:controller => "home", :action => "search"}, :update => "map_div") do %>

The search method specified as the form’s action:

def search
    location = GeoKit::Geocoders::MultiGeocoder.geocode(params[:address])
    @map = GMap.new("map_div")
    @map.control_init(:large_map => true,:map_type => true)
    @map.center_zoom_init([location.lat,location.lng],11)
    render :partial => 'map'
end

Is it correct to place the div to be updated inside of a partial, and then render that partial?

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T02:02:54+00:00Added an answer on May 20, 2026 at 2:02 am

    Fyi, I’ve just released a new version of gmaps4rails. It’s based on Rails 3 and uses Google maps API V3:

    https://github.com/apneadiving/Google-Maps-for-Rails

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

NOTE: I'm using v3 of the Google Maps API I'm trying to add an
I'm trying to add markers to a Google maps using V3. I have my
I'm working on a GWT app that's using Google Maps. I'm trying to add
I'm trying to add a few tweets to an infowindow in Google Maps. I
I am trying to get a google API key to add google maps to
I'm trying to add markers on my Google Maps V3. I want to have
I have been trying to add a link to Google Maps so that I
Using Google Maps, I am trying to have an info window open with tabs
In my application using Google maps APIv3, I am trying to randomly generate some
I'm struggling trying to cluster 50 markers using the markerclusterer v3 with Google maps

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.