search for: to_many_associ

Displaying 1 result from an estimated 1 matches for "to_many_associ".

2005 Aug 15
0
RE: has_many_belongs_to_many insert issues [CLOSED]
...ement fails, I don''t understand why Rails generated this buggy statement. If I had the relationship by hand in SQL, I can perfectly issue a find in Rails or retrieve it. >From the source code, it looks like: File: activerecord-1.11.1.1962\lib\active_record\associations\has_and_belongs_ to_many_association.rb Method: insert_record Lines 121 and 123 seem to work as I get something in the breakpointer. And I guess line 139, since I cannot make the @owner.send work: "INSERT INTO #{@join_table} (#{@owner.send(:quoted_column_names, attributes).join('', '')}) &quot...