에 속는을 제거 할 방법은 레일내가 루비
- @companies.people.each do |person|
%p
Hello there :
= "#{person.manager.name} (#{person.manager.email})"
하지만 난 단지 관리자가 한 번 이름을 인쇄 할 .....하지만 많은 사람들이 같은 관리자를 가지고 그들이이 루프를 dupes를 인쇄하는 방법 ... 여기 dupes를 인쇄하지 않는 방법에 대한 아이디어
당신이 뭔가를 찾고있다 비슷한 http://stackoverflow.com/questions/8793152/rails-3-1-has-many-through에 -complex-ordering – dbKooper