Rails is a powerful web application framework written in Ruby. Rails puts a strong emphasis on the programming paradigms of convention over configuration and don't repeat yourself. In this course, you will learn the basics of the Rails environment. You'll learn about routing, what the ActionController does, and how to do seeding.
Learning Objectives
Rails Environments and Configuration
- start the course
- describe Rails
- set up the Rails environment
- create a new project
- recall how to change different settings
- describe where the secrets.yml file is found and what it contains
- describe how to use the bundler
- create a new Logger and describe how the Rails.logger method is used
Scaffolding and Generators
- generate a basic scaffold
- describe the scaffold
Routing
- describe what the routes.rb file is and how it is used
- describe how to use a singular resource route
- create nested resource routes
- create shallow resource routes
- create static pages
Migrations
- describe what migrations are and how they are used
- create and sequence a migration
- perform and roll back a migration
- recall what some of the migration and database constraints are
Seeding
- recall how to edit the seeds.rb file
ActionController
- describe the controller actions INDEX, NEW, and CREATE
- describe the member actions SHOW, EDIT, UPDATE, and DESTROY
- use respond_to to render JSON and XML
ActionController Streaming
- use the ActionController::Live module
- use action callbacks
- use variants to render different templates based on some criteria
Practice: Routing
- generate a basic scaffold and create shallow routes