Re: [Rails] model association question

2011-09-13 Thread Randy Regnier
On 09/13/2011 04:21 PM, Colin Law wrote: On 13 September 2011 22:17, Randy Regnier wrote: On 09/13/2011 03:34 PM, Jesse wrote: On 9/13/11 1:22 PM, Randy Regnier wrote: I have a question about how best to model a pair of properties/attributes in Rails3. The generic "models" are:

Re: [Rails] model association question

2011-09-13 Thread Randy Regnier
On 09/13/2011 03:34 PM, Jesse wrote: On 9/13/11 1:22 PM, Randy Regnier wrote: I have a question about how best to model a pair of properties/attributes in Rails3. The generic "models" are: class Foo < ActiveRecord::Base end class Bar < ActiveRecord::Base end I want

[Rails] model association question

2011-09-13 Thread Randy Regnier
I have a question about how best to model a pair of properties/attributes in Rails3. The generic "models" are: class Foo < ActiveRecord::Base end class Bar < ActiveRecord::Base end I want Foo to have two associations with Bar, along the lines of 'has_one' for each association, where I can work