I have a typical User model (username, password, name, etc). I want to allow users to attach three chosen categories to their account. Each of the three categories exist in the Category model.
How can I link three foreign keys from Category to a single User without using an intermediate table for tracking? Each Category can belong to any number of Users, but each user can have only three Categories.
I played with has_many :through but I really don't think a relationship table is necessary and it would generate a lot of coding on my end to work with it.
Any ideas?