bookings` as b where date_format(from_unixtime(b.timestamp), '%M %e %Y') = date_format(from_unixtime(:timestamp), '%M %e %Y')问题似乎在于查询的这一部分:
where date_format(from_uni
were problems with the following fields:
我得到了这个错误,我使用的代码是:
validates_format_of:user_id , :with => /\A(([0-9]{4})-[A-Z]{2}$)\Z/ , :message => "should be in the format 1111-TT", :allow_nil