You can show specific column name in association check_boxes in simple form.
Like this.
= f.association :prefectures, as: :check_boxes,
label_method: lambda { |prefecture| JpPrefecture::Prefecture.find(prefecture.prefecture_code).name}
You can show specific column name in association check_boxes in simple form.
Like this.
= f.association :prefectures, as: :check_boxes,
label_method: lambda { |prefecture| JpPrefecture::Prefecture.find(prefecture.prefecture_code).name}
コメントを残す