Radhames Brito wrote:
>>
> Because you have one user model i have 4, so when i authenticate i have 
> to
> loop all the models to find the credentials beacuse there can be a
> company_user with name "pedro" and an admin name "pedro" because they 
> are 2
> diferent models, there is another problem because those 2 pedros could 
> have
> the same password, all because i am using different models for each user
> type.

Why the hell would you do it this way?  Just use one user model with a 
role and have done with it.  You're getting name conflicts and other 
problems the way you're doing it...so don't do it that way!

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
-- 
Posted via http://www.ruby-forum.com/.

-- 
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