apneadiving / Google-Maps-for-Rails

Enables easy Google map + overlays creation in Ruby apps
https://apneadiving.github.io/
MIT License
2.26k stars 382 forks source link

Ajax request #240

Closed ulugbekov closed 12 years ago

ulugbekov commented 12 years ago

I am showing all companies on index page. Then when I hit show for specific company, map doesn't load. The reason was yield :scripts. Content_for is not helping on ajax request. So I included map on index, so that ajax request will leave the scripts on page. But the map is not updating company's location on map. It is showing all companies locations. It is getting @json from index page for some reason, even though I have @json for specific company on show action. Thanks

apneadiving commented 12 years ago

Please browse stackoverflow, I've answered questions on gmaps4rails + ajax there

Sent from my iPhone

On 28 juil. 2012, at 02:01, Alisher Ulugbekovreply@reply.github.com wrote:

I am showing all companies on index page. Then when I hit show for specific company, map doesn't load. The reason was yield :scripts. Content_for is not helping on ajax request. So I included map on index, so that ajax request will leave the scripts on page. But the map is not updating company's location on map. It is showing all companies locations. It is getting @json from index page for some reason, even though I have @json for specific company on show action. Thanks


Reply to this email directly or view it on GitHub: https://github.com/apneadiving/Google-Maps-for-Rails/issues/240