Dear rails mailing list, First a big thank you to everyone for you past, present an future help.... learned a lot fro here. I saw some relater threads on this but I need some more direct answers. I generated with scaffold an object which has multiple attributes. Some of those attributes in the database get dynamically updated in the background in the background by some external scripts/delayed jobs etc. How can I get the index view to dynamically update those attributes withought getting the user to manually refresh the web page? Merci, Julien -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/JTWRuyPDDvUJ. For more options, visit https://groups.google.com/groups/opt_out.
Use Faye. http://faye.jcoglan.com/ -- Dheeraj Kumar On Tuesday 15 January 2013 at 7:59 AM, Julien Estebane wrote:> Dear rails mailing list, > > First a big thank you to everyone for you past, present an future help.... learned a lot fro here. > > I saw some relater threads on this but I need some more direct answers. > > I generated with scaffold an object which has multiple attributes. Some of those attributes in the database get dynamically updated in the background in the background by some external scripts/delayed jobs etc. > > How can I get the index view to dynamically update those attributes withought getting the user to manually refresh the web page? > > Merci, > > Julien > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org (mailto:rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org). > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org (mailto:rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org). > To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/JTWRuyPDDvUJ. > For more options, visit https://groups.google.com/groups/opt_out. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Thanks Dheeraj but I don''t think this is what im looking for as my app runs on heroku. I was hoping there would be a gem that solves this problem -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/uinEK6AXxH0J. For more options, visit https://groups.google.com/groups/opt_out.
On 15 January 2013 02:29, Julien Estebane <julienestebene-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Dear rails mailing list, > > First a big thank you to everyone for you past, present an future help.... learned a lot fro here. > > I saw some relater threads on this but I need some more direct answers. > > I generated with scaffold an object which has multiple attributes. Some of those attributes in the database get dynamically updated in the background in the background by some external scripts/delayed jobs etc. > > How can I get the index view to dynamically update those attributes withought getting the user to manually refresh the web page?One solution, probably the easiest, is to use javascript to periodically request a page refresh (probably via AJAX). Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
You can run Faye on Heroku. https://github.com/ntenisOT/Faye-Heroku-Cedar If you don''t want to use it, try PusherApp. If you don''t want to use that either, poll periodically with AJAX. -- Dheeraj Kumar On Tuesday 15 January 2013 at 1:27 PM, Colin Law wrote:> On 15 January 2013 02:29, Julien Estebane <julienestebene-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org (mailto:julienestebene-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org)> wrote: > > Dear rails mailing list, > > > > First a big thank you to everyone for you past, present an future help.... learned a lot fro here. > > > > I saw some relater threads on this but I need some more direct answers. > > > > I generated with scaffold an object which has multiple attributes. Some of those attributes in the database get dynamically updated in the background in the background by some external scripts/delayed jobs etc. > > > > How can I get the index view to dynamically update those attributes withought getting the user to manually refresh the web page? > > One solution, probably the easiest, is to use javascript to > periodically request a page refresh (probably via AJAX). > > Colin > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org (mailto:rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org). > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org (mailto:rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org). > For more options, visit https://groups.google.com/groups/opt_out. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
You might want to keep your eye out for Rails 4, in particular for what Aaron presents here: http://www.confreaks.com/videos/1291-rubyconf2012-real-time-salami -- start watching at 15:00, with a demo at 22:00 On Tuesday, January 15, 2013 3:38:21 AM UTC-5, Dheeraj Kumar wrote:> > You can run Faye on Heroku. https://github.com/ntenisOT/Faye-Heroku-Cedar > > If you don''t want to use it, try PusherApp. If you don''t want to use that > either, poll periodically with AJAX. > > -- > Dheeraj Kumar > > On Tuesday 15 January 2013 at 1:27 PM, Colin Law wrote: > > On 15 January 2013 02:29, Julien Estebane <juliene...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org<javascript:>> > wrote: > > Dear rails mailing list, > > First a big thank you to everyone for you past, present an future help.... > learned a lot fro here. > > I saw some relater threads on this but I need some more direct answers. > > I generated with scaffold an object which has multiple attributes. Some of > those attributes in the database get dynamically updated in the background > in the background by some external scripts/delayed jobs etc. > > How can I get the index view to dynamically update those attributes > withought getting the user to manually refresh the web page? > > > One solution, probably the easiest, is to use javascript to > periodically request a page refresh (probably via AJAX). > > Colin > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonra...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<javascript:> > . > To unsubscribe from this group, send email to > rubyonrails-ta...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>. > For more options, visit https://groups.google.com/groups/opt_out. > > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/dSldhVDH8TwJ. For more options, visit https://groups.google.com/groups/opt_out.