Displaying 1 result from an estimated 1 matches for "foobart".
Did you mean:
foobar
2006 Jan 03
0
habtm and insert_sql
...---------------------------
id | integer | not null
topic_key | integer | not null
child_topic_key | integer | not null
display_header | text
If I do this:
t = Topic.find(2220)
d = Document.find(3084)
t.child_documents.push_with_attributes d, :display_header => ''foobart''
It adds the following row to topic_subtopic:
id | topic_key | child_topic_key | display_header
------+-----------+-----------------+----------------
3084 | 2220 | 3084 | foobart
Looks like it did the right thing, but look at the value of the ''id''
c...