0
전체 오류보기 : http://notesapp.heroku.com/Strange DataMapper (0.10.2) 오류입니다. 도와주세요!
저는 DataMapper와 dm-validation 0.10.2를 사용하고 있습니다. 아무리 많은 모델을 고치더라도 동일한 오류 또는 다른 오류가 발생합니다. 내 모델의 모습은 다음과 같습니다.
class User
include DataMapper::Resource
attr_accessor :password, :password_confirmation
property :id, Serial, :required => true
property :email, String, :required => true, :format => :email_address, :unique => true
property :hashed_password, String
property :salt, String, :required => true
property :created_at, DateTime, :default => Time.now
property :permission_level, Integer, :default => 1
validates_present :password_confirmation, :unless => Proc.new { |t| t.hashed_password }
validates_present :password, :unless => Proc.new { |t| t.hashed_password }
validates_is_confirmed :password
직접 문제를 해결하지는 않지만 올바른 방법으로 나를 조종했습니다. 감사. –