0
的用戶我有authlogic設置這樣Authlogic,不能更新,因爲驗證
acts_as_authentic do |config|
config.login_field = 'email'
config.merge_validates_length_of_email_field_options :in => 5..50
config.validates_length_of_password_field_options = {:on => :update, :minimum => 4 }
config.validates_length_of_password_confirmation_field_options = {:on => :update, :minimum => 4}
end
,因爲密碼和password_confirmation,想在保存驗證,他們是無我不能更新用戶屬性。有什麼方法暫時關閉驗證,或者有更好的解決方案嗎?
當您更新您的用戶對象,你怎麼做呢?請發佈該代碼。 – 2011-01-31 18:38:09