• Ruby on Rails

    • (def)
    • MVC (: pattern run-through)
    • Convention over Configuration
    • Example: rails-blog
    • Example: rails-private-events
    • Example: rails-flight-booker
    • Example: sets-n-reps
  • 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:seed
    • bin/rails db:create
    • bin/rails server
    • bin/rails console
    • bin/rails dbconsole
  • Routing

    • (def)
    • config/routes.rb
    • To define route(s) in config/routes.rb ⭐️
    • 4 main HTTP verbs used with RESTful routes
    • 7 RESTful actions
    • URI
    • params hash
  • Controllers

    • (def)
    • To create a controller & action methods
    • render vs redirect_to
  • View (templates)

    • (def)
    • Layouts
    • Partials
    • ERB
    • Asset tags
    • <%= yield %>
    • How View form submissions structure params ⭐️
  • Helper methods

    • Route helpers (: posts_path / [action]_resource[_path]) ⭐️
    • Controller helpers
    • View helpers ⭐️
    • Validation helpers
  • Models

    • (def)
    • Schema files
    • Model files
    • Validations
    • .errors
    • Scopes (: scope)
    • Enums (: enum)
    • accepts_nested_attributes_for (: fields_for) ⭐️
  • Active Record

    • (def)
    • ORM (def)
    • ORM (features)
    • Naming conventions
    • Namespacing models
  • Validations (activerecord)

    • ActiveRecord methods that trigger validations
    • ActiveRecord methods that skips validations
    • Validation helper methods
    • Validation options
    • Validation conditionals (: :if / :unless)
    • Strict validations (: strict)
    • Listing validations of a class (: .validators)
    • Custom validations
    • errors
  • Associations (activerecord)

    • (def) (: Workflow)
    • Association methods (: belongs_to / has_one etc.) ⭐️
    • Methods auto-generated by belongs_to
    • Methods auto-generated by has_one
    • Methods auto-generated by has_many
    • Methods auto-generated by has_and_belongs_to_many
    • Polymorphic associations
    • Self-joins
    • STI (Single Table Inheritance)
    • Delegated types
    • Association options
    • Association scopes
    • Association caching
  • Callbacks