コース、ユニット、プランの 3 つのモデルがあります。関係は次のようになります。
Course has_many units
Unit belongs_to course
Plan has_and_belongs_to_many units
Unit has_and_belongs_to_many plans
create_plan ページには、プランの単位を取得するための collection_select があります。ユニットにはタイトルがなく、コースのタイトルを使用します。collection_selectにコースタイトルを表示したい。どうやってやるの?