Displaying 1 result from an estimated 1 matches for "problem_tags".
Did you mean:
problems_tags
2006 Jun 09
2
Creating An Extra Association Between Two Tables
...I do it like this:
self.tags << Tag.find_by_name(tag)
I get the following error:
Mysql::Error: Duplicate entry ''20'' for key 1: INSERT INTO
problems_tags (`tag_id`, `problem_id`, `id`) VALUES (20, 33, 20)
The problem is basically that it is trying to create a row in
problem_tags with an ''id'' that already exists. How come it is trying
to do that? How can I prevent it from doing that?
Thanks for your help guys and gals!
John Kopanas
http://www.kopanas.com
============================================================
http://www.soen.info - Index of o...