저는 datamapper에 newby입니다. 나는이 포럼에서이 코드를 보았다.datamapper - ruby의 attr_accessor는 무엇입니까?
class User
include DataMapper::Resource
property :id, Serial
property :email, String, :required => true, :unique => true, :format => :email_address,
property :name, String
property :hashed_password, String
property :salt, String
property :created_at, DateTime
attr_accessor :password, :password_confirmation
속성은 ..이 attr_accessor 모델에 있지만 데이터베이스에에게 필드의 종류를 means..is 않습니다 table..what 데이터베이스의 필드를 정의하는
감사
나는 그것을 이해한다. attr_accessor는 모델의 필드에 있지만 데이터베이스에는 없다. – coool
맞다. –