Index
chap1
attr_*
virtual attribute/ setter / :method=
use var & @var in class
&:symbol
define_method(*args)
constantize(str)
Inject and Reduce
File
const_get / send (fetch class/method by "string" or :sym)
include / extend
chap2
struct & hash
save & save!
bang !pa
new & build
nil? & empty? & blank?
update & update_all & update_attribute & update_attribute
scope
chap3
Number
Float vs BigDecimal (precision)
Fixnum vs Bignum
chap4
Rails: ActiveModel, ActiveRecord and ActiveResource
Rails: Action Pack
Enterprise Rails
Nokogiri
ActiveRecord - 進階功能
單一表格繼承STI(Single-table inheritance)
交易Transactions
序列化Serialize
Store
pack & unpack
Performance related
Engines & plugins
JSONb, JSON & hStore
Last updated
Was this helpful?