Friday, November 16, 2012

Re: [Rails] Multiple User Types - Michael Hartl's Tutorial

On 17 November 2012 00:15, Erdem Gezer <erdemgezer@gmail.com> wrote:
> Hi all,
>
> Can I have your opinions about the implementation of multiple user types
> that can login and play in different roles?
>
> What do you think about the answer on stack overflow?
> http://stackoverflow.com/questions/10876059/michael-hartls-rails-tutorial-reusing-sessions-resource-for-multiple-user-type

I would first question the basic premise of multiple user types. Is
that really necessary? Can a user every be of both types? Perhaps
the requirement is not for different types of users but for users with
different roles, meaning that a user can perform the role of a
publisher or a subscriber (in the example given) or perhaps even both.
In which case the requirement is just for a single user table with
something like cancan to provide roles.

Colin

--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate