简体   繁体   中英

date_select in rails

i have an issue, when i post the date in date_select it post the today's date, although i select the future date but it keeps giving me the current date.

<%= form.date_select :starts_at %>

does anyone help me out... thanks in advance.

Check your model.

Are some attributes attr_accessible while this isn't? Is it attr_protected?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM