Ruby/Rails syntax
  • Index
  • chap 1
  • chap 2
  • chap 3
  • chap 4
  • Enterprise Rails - big picture
  • Nokogiri
  • ActiveRecord - 進階功能
  • pack & unpack
  • performance
  • rails engine
  • jsonb / json / hstore
  • Deploy
  • Polymorphism/Polymorphic Associations
  • relationship
  • rvm / ENV
  • Auth
  • DB related
  • TODO N+1
  • SQL view
  • module
  • api + create-react-app
  • ONE_LINE
  • Delete & destroy association
Powered by GitBook
On this page

Was this helpful?

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

Nextchap 1

Last updated 5 years ago

Was this helpful?