what is attr_accessor in datamapper - ruby
问题 I am a newby in datamapper. I saw this code in this forum. 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 property would mean that it defines the field in the database table..what does attr_accessor means..is it kind of field in the