How to add notification in Ruby on Rails applicatioon? -
i have application build ruby on rails, can see here: sidodi.
this app has 2 models, user , outgoingmail. outgoingmail model has status can change draft final.
it has 3 user role:
- conseptor
- head of division
- head of office
the workflow is:
- conceptor create new outgoingmail default status draft
- conceptor send outgoingmail , status change draft-1
- head of division check outgoingmail
- head of division send outgoingmail , status change draft-2
- conceptor view , change outgoingmail
- conceptor send outgoingmail revision , status change draft-3
- head of division check outgoingmail
- head of division send outgoingmail , status change draft-4
- conceptor view , change outgoingmail
- conceptor send outgoingmail revision , status change draft-5
- head of office check outgoingmail
- head of office send outgoingmail , status change draft-6
- conceptor view , change outgoingmail
- conceptor send outgoingmail revision , status change draft-7
- head of office check outgoingmail
- head of office send outgoingmail , status change final
- conceptor view, change, download, , print outgoingmail
when push send button, status changed need push refresh (f5) view outgoingmail. happened when different role view page outgoingmail unseen until pushing refresh button (f5).
is there way create notification in ruby on rails application?
you use rails' flash notifications.
Comments
Post a Comment