Displaying 1 result from an estimated 1 matches for "b8a27921".
Did you mean:
8727921
2006 Apr 07
3
Different validation for different users
Hi,
I have two types of users; normal user and admin.
I have a field called priority in the table task.
This priority field is invisible to the normal user, but not to the
admin. The admin has to fill in the priority field when he adds a record
via filling a form. Thus, i need to add validates_presence_of :priority
to the model task. But, if i do this, then the normal user can''t add a