Closed ulugbekov closed 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
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