Ruby on Rails
Command line
bin/rails new my_rails_app
bin/rails generate
bin/rails routes
bin/rails db:migrate
bin/rails db:rollback
bin/rails db:setup
bin/rails db:prepare
bin/rails db:schema:dump
bin/rails db:schema:load
bin/rails db:seeds
bin/rails server
bin/rails console
bin/rails dbconsole
Routing
config/routes.rb
config/routes.rb
params
hashControllers
render
vs redirect_to
View (templates)
<%= yield %>
Helper methods
Models
.errors
Active Record
schema_migrations
tabledb/seeds.rb
Validations (Active Record)
ActiveRecord
methods that trigger validationsActiveRecord
methods that skips validations:if
/ :unless
)strict
).validators
)errors
Associations (Active Record)
belongs_to
/ has_one
etc.)belongs_to
has_one
has_many
Rails classes/modules
AbstractController
AbstractController::Base
AbstractController::Base#render_to_body
AbstractController::Rendering#render
ActionController
ApplicationController
ActionDispatch
ActionView
ActiveRecord
ActiveModel