Skip to main content

Call Api and Auto-Reload div.

Rails • Asked by Rodrigo

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!!!


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 22,346+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.