I have a problem that I can't solve. The problem is that I've got one user-model, and one event-model and in the event model a user can have multiple role's. We can also add attendants either an existing user, or create a fake user that can be converted (just by a flag in the db) to a real user.
So the diffrent user-type are:
A existing user who has created the event (this is a one-to-one relationship)
A existing user who is admin for the event
A existing user who has paid money on the event
A existing user who attended the event
and lastly a person who attended the event but isn't a user yet but has to be shown, so a fake-user would do here..
When I add the attending users/fake users I use nested forms.
So does anyone have a idea for how to solve this? I have tried with habtm, has_many :through with polymorphism and STI but with no luck. Thanks in advance!