ActiveRecord Cheatsheet Online http://slash7.com/cheats/activerecord_cheatsheet.pdf http://appletree.or.kr/quick_reference_cards/Ruby-Ruby_on_Rails/rails-migrations.pdf Rails Models Generating models $ rails g model User
Rails ActiveRecord (association) - Cheatsheet http://guides.rubyonrails.org/association_basics.html Types of associations belongs_to : TABLE_NAME has_one : TABLE_NAME [:through => :TABLE_NAME] has_many : TABLE_NAME [:through => :TABLE_NAME] has_and_belongs_to_many : TABLE_NAME [:join_table => :TABLE_NAME]