Re: [Rails] Re: how does gmail show new messages as they arrive

2018-09-16 Thread Colin Law
On Mon, 17 Sep 2018, 02:51 fugee ohu, wrote: > Does it matter if my rails app is an api app or not? > Define (in terms of models and controllers) in what way they differ. Colin > On Sunday, September 16, 2018 at 7:33:00 AM UTC-4, Rob Jonson wrote: >> >> The rails way to do this (update page

[Rails] Re: how does gmail show new messages as they arrive

2018-09-16 Thread fugee ohu
Does it matter if my rails app is an api app or not? On Sunday, September 16, 2018 at 7:33:00 AM UTC-4, Rob Jonson wrote: > > 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

Re: [Rails] Re: how does gmail show new messages as they arrive

2018-09-16 Thread dave woodall
Rob, kudos to your insight and brevity to convert that question into a rails response. Sincerely, Dave Woodall davewoodall.com On Sun, Sep 16, 2018 at 7:33 AM, Rob Jonson wrote: > The rails way to do this (update page when stuff happens at the server) is > ActionCable >

[Rails] Re: how does gmail show new messages as they arrive

2018-09-16 Thread Rob Jonson
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