from my fourth comment

I presume that your models are Admin, Owner, User and Client (or
>> similar names).
>>
>

> yes exactly, but i created separated models because there would be a lot of
> conditional validations if i didnt,
> for example owners can manage a companies but a user should belong to a
> company.



>
> The fact that you worded your initial requirement as
>> I have pointed out above suggests that these are all Users with
>> different roles.
>>
>
yes but i would require different controllers and views for each roles/type
> of user, and what i call user, which is the
> company employee in this case, has many roles.
>



I though about all this before, but the reason i have hesitated to do it
> this way is because of the validations, excess in attributes
> for the roles/types that dont require them and possible security issues.
>
> I see not way of avoiding the creation of a very fat user model, with lots
> of accesible attributes dynamically changing and lots of scopes.
>


in my fourth comment im explained why i was doing it this way.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to