search for: topicreply

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

2006 Feb 18
14
Composite primary key support in ActiveRecord?
...natural way to implement one-to-many relationships, for things like "forum replies". For example, ID for the third comment of forum topic #87 should be (87, 3) not (87, 1074), format being (topic_id, reply_id). Currently, I''m trying to work around this by using ''TopicReply.find (:fist, conditions => ["topic_id=? AND id=?", 87, 3]'' instead of ''TopicReply.find(1074)''. However, I haven''t figured out yet how to save such objects.. Any comment will be greatly appreciated. Thanks, daesan