Index

chap1

  1. attr_*

  2. virtual attribute/ setter / :method=

  3. use var & @var in class

  4. &:symbol

  5. define_method(*args)

  6. constantize(str)

  7. Inject and Reduce

  8. File

  9. const_get / send (fetch class/method by "string" or :sym)

  10. include / extend

chap2

  1. struct & hash

  2. save & save!

  3. bang !pa

  4. new & build

  5. nil? & empty? & blank?

  6. update & update_all & update_attribute & update_attribute

  7. scope

chap3

  1. Number

  2. Float vs BigDecimal (precision)

  3. Fixnum vs Bignum

chap4

  1. Rails: ActiveModel, ActiveRecord and ActiveResource

  2. Rails: Action Pack

Enterprise Rails

Nokogiri

ActiveRecord - 進階功能

  1. 單一表格繼承STI(Single-table inheritance)

  2. 交易Transactions

  3. 序列化Serialize

  4. Store

pack & unpack

Performance related

Engines & plugins

JSONb, JSON & hStore

Last updated

Was this helpful?