阅读背景:

Rails:日期验证具有及时性但没有错误消息

来源:互联网 

I'm hoping my inexperience with Rails is the reason no one else seems to be experiencing this issue and that there's a simple answer. At the moment though, I'm stumped. The quick-and-dirty is that I have a model which represents a daily schedule (open and close times by date). When looking for a way to validate these datetime attributes, I came across several threads here which suggested using the validates_timeliness gem which I've done. I'd written a few simple unit tests to check the rules I wanted to my object to adhere to and while the new validation seems to work, it doesn't put anything in the errors collection for the ActiveModel object.I'm hoping my inexperience with Rails is the re




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

分享到: