ruby - Rails real-time logger on webpage? -


i'm transferring ruby app once made rails. app calculations take while (up infinity (in theory) if :p). show user status of everything, used console. now, obviously, want browser show this.

does has pointers start reading/exmples/gems/ideas? i'm pretty new web development, i've heard of jquery, possibly trick?

as per understanding have 2 options this

1 - using kind of server push method implemented. may use following components

juggernaut (http://juggernaut.rubyforge.org/ ) http://www.ape-project.org/

2 - using periodicalupdater jquery. send request server in given time interval.

you can populate db table, mem-cache or datastore status , write method read , return value, method can called via ajax.periodicalupdater

i have done this, killing performance request server (in mycase every 5 seconds)

even though haven't done, prefer server-push option methodical way go

hth

cheers

sameera


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -