I have two database - tables (users and user_permissions) which have a
1..n - relationship. If I want to create a new entry on 'users' table I
need the correct user_permission_id from the other table. So the form
which I use has a select list with all entries of the user_permissions -
table but if anybody insert an invalid key into the select list I get
inconsistent data in my database. How can I solve this problem?
At this time I use "validates_inclusion_of" and "validates_associated"
to solve this problem but without any success.