Re: [Rails] composite keys and association

2012-01-05 Thread Colin Law
On 5 January 2012 02:53, Daisy Di li...@ruby-forum.com wrote: i have two table, comment and post, both have composite keys, and no id column, comment belongs to post, i follow the instruction of http://compositekeys.rubyforge.org/, and it seems successfully, (But i still cant confirm to put

[Rails] composite keys and association

2012-01-04 Thread Daisy Di
i have two table, comment and post, both have composite keys, and no id column, comment belongs to post, i follow the instruction of http://compositekeys.rubyforge.org/, and it seems successfully, (But i still cant confirm to put require 'rubygems' and require 'composite_primary_keys' on which