Ruby on Rails ⇨ Demos 'n' Deets
Spring 2020 Edition
Demos
Getting Started
- Setting Up the Development Environment
- Running a Rails App
- Setting Up a New Rails Project
- Setting Up a New Github Project Repository
Simple Web Pages and Forms
- Adding (Mostly Static) Webpages
- Adding Images to Pages
- Adding Hyperlinks between Pages
- Adding a Root Route
- Rendering Data from Controllers
- Passing Data from View to Controller with Simple Forms
Model Basics
- Creating Model Classes
- Automatically Annotating Model Code
- Seeding the Database
- Displaying All Model Records
- Displaying a Single Model Record
Model Tests and Validations
- Creating and Testing Valid Fixtures
- Creating and Testing Presence Validations
- Creating and Testing Uniqueness Validations
- Creating and Testing Custom Validations
RESTful Resources
- Displaying Notification Messages Using the Flash
- Forms for Creating New Model Records
- Forms and Actions for Updating Model Records
- Actions for Deleting Model Records
Linking Model Objects with Associations
- Creating a New Model Class to Associate With
- One-to-Many Model Associations
- Forms That Handle One-to-Many Associations