The rails way to do this (update page when stuff happens at the server) is 
ActionCable
https://guides.rubyonrails.org/action_cable_overview.html

It runs on websockets and allows the server to push information to the 
browser. Your javascript on the page then needs to know what to do with 
that information.

It is typically slightly more complex to host than a 'regular' site as you 
probably need Redis running.



On Sunday, 16 September 2018 08:34:38 UTC+1, fugee ohu wrote:
>
> how does gmail make new messages appear in your browser as they arrive?
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/b89e6508-ea6a-4347-a42a-bcc0f73717fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to