Displaying 2 results from an estimated 2 matches for "user_permissions".
Did you mean:
  user_permission
  
2008 Jun 02
5
validate - message in the flash[:error]
Hi,
I want to show the validate - message in the flash[:error] - field but I
can''t find any options.
An example:
class UserPermission < ActiveRecord::Base
  validates_presence_of :name,
                        :message => "Please insert a name"
 ...                    |
end                     V
 flash[:error] = "Error -  "
Has anybody a solution for this
2006 Jul 31
1
Adding "groups" to a user model
At present I have the following models:
users <-> permissions <-> objects
I wish to expand this to include groups, so that groups can contain 
users and have permissions (a user might be part of more than one 
group).  However, the only way I see to do this is:
users <-> user_permissions <-> objects
users <-> group_memberships <-> groups <-> group_permissions <-> objects
Is there a nicer way to do this so that I only need one permissions 
model, or is this the best way to do it?
Also, whichever way I do it, is there a nice way to make groups for 
spe...