update-attributes
Using MVC2, how do I validate that a date is within a given date range?
I have a requirement, in an MVC2 web application, to validate that the 开发者_高级运维user is at least 13 years old.Is there a date/datetime validation attribute that will enable me to do this?Since y[详细]
2023-01-03 18:56 分类:问答Rails: #update_attribute vs #update_attributes
obj.update_attribute(:only_one_field, \'Some Value\') obj.update_attributes(field1: \'value\', field2: \'value2\', field3: \'value3\')[详细]
2022-12-29 02:49 分类:问答Rails: saving a string on an object -- syntax problem?
I am trying to write a simple function to clean a filename string and update the object.When I save a test string it works, but when I try to save the string variable I\'ve created, nothing happens.Bu[详细]
2022-12-23 19:58 分类:问答
加载中,请稍侯......