Ruby on Rails Demos-n-Deets
Spring 2021 Edition
Demos
Project Setup
- Development Environment: Setting Up a Computer for Rails-based Web Development
- Running Apps: Initializing and Executing the Demo Apps
- New Projects: Generating and Configuring a New Rails Web App
Webpage Basics
- Webpages: Adding a Page to the App
- Tables: Adding a Table to a Page
- Titles: Customizing the Title Metadata Shown in Browser Tabs
- Images: Adding an Image to a Page
- Root Routes: Setting the Root Page of the App
- Internal Links: Hyperlinking to a Page within the App
- External Links: Hyperlinking to an External Website
- Controller Tests: Creating an Automated Test for a Webpage
Model Basics
- Model Classes: Creating a Model Class and Seeding the Database
- Index Pages: Displaying Multiple Model Objects
- Show Pages: Displaying Individual Model Objects
Model Tests and Validations
- Model Tests: Creating Test Fixtures and Automated Model Tests
- Presence Validations: Ensuring That an Attribute Value Is Not Left Blank
- Length Validations: Ensuring That a String Attribute Is of Appropriate Length
- Numericality Validations: Ensuring That a Number Attribute Has Specified Properties
- Inclusion Validations: Ensuring That an Attribute Value Is One of a Fixed Set of Values
- Custom Validations: Creating a Custom Validation when the Predefined Helpers Won't Do
Forms and Actions for Managing Model Objects
- New/Create Forms: Creating and Saving New Model Objects with Forms
- Edit/Update Forms: Updating Model Objects with Forms
- Destroy Actions: Deleting Model Records
- Form Partials: Refactoring New and Edit Forms Into a Single Form
Model Associations
- One-to-Many Associations: Creating a One-to-Many Association between Model Classes
- Nested-Resource Pages: Creating Pages and UI Features for CRUDing Model Classes with a One-to-Many Association
- Many-to-Many Associations: Creating a Many-to-Many Association between Model Classes
Authentication
Deets
Prerequisite Technologies
- Unix: How to Use the Unix Shell Command-Line
- Ruby: Helpful Resources for Learning the Ruby Programming Language
- HTML: Some Basic HTML Elements Used in the Demos