HABTM Association with FactoryGirl
问题 Have looked through and tried most examples and still cannot create a working HABTM . No matter how the CaseTrack and CaseTrackValue factories are constructed, I'm not able to find the CaseTrackValue[] in CaseTrack. Shouldn't creating CaseTrack properly provide a CaseTrackValue param within CaseTrack. BTW: the only working association for HABTM seems to be putting case_track_values { |a| [a.association(:case_track_value)] } in CaseTrack. class CaseTrack has_and_belongs_to_many CaseTrackValue