阅读背景:

Rails 3:如何防止我的验证从time_select下拉菜单中传递“nil time”?

来源:互联网 

I use time_select with a prompt ("Choose hours"...) and would like to make sure, the user actually enters a valid time. But if the form is submitted without a time being selected (so with the empty prompt options selected) I don't get any errors from my validations.I use time_select with a prompt ("Choose hours"




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: