search for: b_plus_c

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

Did you mean: _plus_
2013 Feb 25
3
ActiveRecord associations: design question
...ave three models: A, B and C, with the following relationships: - B hasMany C - C belongsTo B I would like A to "has_one" instance of B+C. By that I mean A needs to be linked to a specific instance of B AND a specific instance of C. My first guess would be to create a fourth object, say B_plus_C that would: - belongs to B - belongs to C - belongs to A Is it a correct way to do this? I am not sure why, but it feels a bit weird to have to create a model for this. Thanks a lot! PJ -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"...