All threads / Making GeoSearch smooth with AJAX Discussion

Ask A Question

Notifications

You’re not receiving notifications from this thread.

Making GeoSearch smooth with AJAX Discussion

Reply

Thanks a lot for this very interesting screencast.
I am having trouble understanding how the AJAX requests works when the map is dragged (there is no link_to with remote:true, just a turbolink.visit request). Would you mind explaning how it works ?

Reply

Thank you for the video.

How do your render an escape javascript partial using just webpacker. For example, in the index.js.erb file you are doing the following:

$("#transaction-list").replaceWith("<%=j render partial: "list" %>");
addMarkers();

This sadly isn't working and I haven't been able to find a solution on Stack overflow. Thanks!!

Reply
Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 33,399+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.