web application design - How to manually change what the users see through a back-end of a Rails app? -
i designing voting application. want users have few views:
view 1: please wait
view 2: text of question
view 3: text of question + voting buttons bellow it
view 4: text of question + “you voted… (for/against/abstained)” message below it
restart view 1
the app used during meeting, agenda items voted on. users have tablets , there live speaker. before speaker has asked first question, users see view 1 on devices. speaker/admin initiates view 2 , @ same time reads question out loud. speaker/admin initiates view 3 start voting. users vote , when admin sees voting complete (they have back-end reports if eligible users have voted), restart cycle. thing transfer 1 view other initiated users , (more often) - admin.
because new ruby , rails, far experience in rails app, have links, trigger actions, render views. how change views for/on behalf of users? how do this, when user not initiate action, admin decides when view should changed?
my assumption in admin back-end there must buttons, trigger actions, render views missing link of how render views users , not admin, triggering actions.
you have use ajax sending check calls after particular duration, can call function in simple javascript timer block. controller can have status , changes, change ajax response throwing , on basis of response java script change user view without prompt admins change. hope helps, ask if not clear.
Comments
Post a Comment