s c
2005-Aug-22 18:36 UTC
one more questions Re: newbie question: Anyone can help me about this
Hi everyone, I am trying to write an application about a timesheet management. there are 2 types of members: ''member'' and ''superuser''. superuser could belong to ''member ''and ''superuser'' at the same time. but member is member only. each superuser managees a few members. They have the same right except superuser have the ability of ''signing'' the timesheet electronically of their members'' timesheet (but not others that do not belong to him) while member can only edit and review their own time sheet. What is the easiest way to implement this in rails? I am thinking of having a hidden place in form that only people belonging to ''superuser'' can review and edit the signature column, while the member will never see it, but then does it mean I have to add another column to remember if one''s timesheet is signed or not? I try to find an example of application like this on the web to study but I couldn''t find one unfortunately. The one I find in the ruby and rails site about access control list seems to do something what I want, but I''m thinking if there is an easier way to implement this(I don''t need to do a very sophiscated one, just one to work functionally for now, hopefully that buys me more time to study RoR and do a better one in future :D, if my boss approve...) Thank you once again. sammy --------------------------------- DO YOU YAHOO!? 雅虎邮箱超强增值服务-2G超大空间、pop3收信、无限量邮件提醒 _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails