阅读背景:

Rails有标准的正则表达式验证器吗?

来源:互联网 

I have a Rails model with an attribute that is a regular expression. Is there a standard way to validate that the attribute's value is a valid regexp before saving?I have a Rails model with an attribute that is




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

分享到: