[Rails] Re: how to use single login page for users in four models
ram kris wrote in post #1114502:
> how to use single login page for users in four models
You have not given enough detail in your question to know what you're
asking.
Are you saying that you have four different types of users? If so then
why do you have four models instead of doing role based authorization
having only one user model?
If you really do have four different types of user then you might want
to consider Single-Table-Inheritance (STI). I seriously doubt you need
to go to this extreme though.
I can't give you a definitive answer from such an abstract question.
There are many ways to solve a problem, but you haven't even described
the problem you're trying to solve.
--
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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/fad9a633098f7b2b5f42973f2379ef70%40ruby-forum.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home