Slide 94
Slide 94 text
͍ํ
= form_tag "#", method: :get, data: { controller: "link-
select" } do
- year_and_months.each do |year, month|
= link_to "#{year}/#{month}", reports_path(year:, month:),
style: "display:none;", id: "link_reports_#{year}_#{month}"
= select_tag :target_month,
options_for_select(year_and_months.map{|year, month|
["#{year}/#{month}", "link_to_reports_#{year}_#{month}"]},
"link_to_reports_#{current_year}_#{current_month}"), data:
{ action: "change->link-select#move" }
B
JE
ηϨΫτϘοΫεͷDIBOHFΞΫγϣϯͰ
બΕͨPQUJPOͷWBMVF͕JEͳ
ϦϯΫ͕ΫϦοΫ͞ΕΔ
ίϯτϩʔϥͷࢦఆ
JEΛ
PQUJPOͷ
WBMVFʹ