update the index view ajax

38 views
Skip to first unread message

Julien Estebane

unread,
Jan 14, 2013, 9:29:39 PM1/14/13
to rubyonra...@googlegroups.com
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

Dheeraj Kumar

unread,
Jan 14, 2013, 11:28:24 PM1/14/13
to rubyonra...@googlegroups.com

-- 
Dheeraj Kumar

--
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...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/JTWRuyPDDvUJ.

Julien Estebane

unread,
Jan 14, 2013, 11:39:46 PM1/14/13
to rubyonra...@googlegroups.com
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

Colin Law

unread,
Jan 15, 2013, 2:57:07 AM1/15/13
to rubyonra...@googlegroups.com
One solution, probably the easiest, is to use javascript to
periodically request a page refresh (probably via AJAX).

Colin

Dheeraj Kumar

unread,
Jan 15, 2013, 3:38:21 AM1/15/13
to rubyonra...@googlegroups.com
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

--
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...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages