After doing user = User.first user.named_groups << :admin I got (0.3ms) ROLLBACK ActiveRecord::RecordInvalid: Validation failed: Group must exist Do I have to create the group first ? how?