阅读背景:

获取Rails 3中的验证规则列表?

来源:互联网 

I need to get a list of validation rules out of a Model in my Rails application. I have searched around and looked through the source of a few client-side validation gems, but am still scratching my head about how to do this. Is there an easy way to just pull a list of validation rules out of a Rails model?I need to get a list of validation rules out of




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

分享到: