All threads / Call Api and Auto-Reload div.

Ask A Question

Notifications

You’re not receiving notifications from this thread.

Call Api and Auto-Reload div.

Rodrigo asked in Rails

Hello!

I want to setup a script that calls api from various webistes and retrieve data every n seconds.

I'd like to setup a page where data(numbers) are showing auto-reload constantly.

Which is the best method to do this? Have I to create the script in the controller or directly with javascript?

Have I setup an auto-reload div or something similar for the live reload?

Thank you.

have I to setup Action Calbe or a rake job or something else or directly with javascript/jquery?

Thank you very much!!!

Join the discussion

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

Join 38,311+ 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.