在haml我有这个:
= label_tag :card_month, "Card Expiration"
= select_year nil, {start_year: Date.today.year, end_year: Date.today.year+15}, {name: nil, id: "card_year",}
我想将选择年份的默认值设置为 2020。我该怎么做?
谢谢
在haml我有这个:
= label_tag :card_month, "Card Expiration"
= select_year nil, {start_year: Date.today.year, end_year: Date.today.year+15}, {name: nil, id: "card_year",}
我想将选择年份的默认值设置为 2020。我该怎么做?
谢谢