Forum: Ruby on Rails Google Maps: How to display infoWindow with Ajax?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Vapor .. (Guest)
on 2008-11-09 10:07
I have different restaurant makers on maps.
When I click one marker, it is supposed to show restaurant name and
address after fetching from server at run time.

Currently I am doing this...
restaurant#{restaurant.id}marker.openInfoWindowHtml(\"#{restaurant.name}\");

It is a problem when there are so many restaurants in map.

How can I fetch at runtime?

Thanks.
This topic is locked and can not be replied to.