很抱歉问了这么愚蠢的问题。但是我是否需要使用标准模型验证,例如
validates_length_of :login, :maxinum => 25如果我使用authlogic验证:
acts_as_authentic do |c|
c.validates_length_of_login_field_options = {:within => 2..25}
end发布于 2011-11-15 23:01:22
不,你不需要。这就是Authlogic的方法的作用。
https://stackoverflow.com/questions/8138123
复制相似问题