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 with each, as in bar1
and bar2. 'has_many' would work, but it would be extra work to have to
fish the correct one out of the array, and isn't as elegant a way to
model the relationships.
Thanks
Randy
--
You received this message because you are subscribed to the Google Groups "Ruby on
Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.