Topic: Best approach for types of users?
I was wondering what route I should go for this.
Let's say there are voters, filmmakers, judges, and an admin.
What would be the best modeling relationship for this setup?
Obviously they share one common thing, they are all a type of user. So should it be STI, or a polymoprhic type of association? And could you also provide an example to help picture it?
Also, when registering they should be able to specify what type of user they are registering as. I suppose this can be done using a paramter?
I'd appreciate it - thanks!
edit: I was thinking something like: users, user_types, and installing http://agilewebdevelopment.com/plugins/acl_system to specify what type of user has access to what actions, etc. Well also, user_types need to have specific features, and the original way I was thinking was just an id, and title. Arg I'm a bit confused.
Would this approach be viable?
edit: Well also, user_types need to have specific features, and the original way I was thinking was just an id, and title. Arg I'm a bit confused. Like I'd rather seperate the logic from only using the users table.
Basically the source of confusion is that, let's say a voter is only able to have a blog, nobody else.
Last edited by DFischer (2007-04-30 22:48:39)