Ruby on Rails 6 Essential Training: Models and Associations
Offered By: LinkedIn Learning
Course Description
Overview
Speed up and improve your development of full-featured web applications. Explore built-in features of models and associations in Ruby on Rails and apply these to a sample project.
Syllabus
Introduction
- Let ActiveRecord objects manage your data
- What you should know
- Using the exercise files on GitHub
- Non-database attributes
- Smart models by design
- More ActiveRecord query methods
- Query data selection
- Named scopes
- Challenge: Named scopes
- Solution: Named scopes
- Overview of validation methods
- Write validations
- Use the multipurpose validates method
- Write custom validations
- How to skip validations
- Challenge: Validations
- Solution: Validations
- Overview of callbacks
- Use callbacks to automate actions
- Execute callbacks conditionally
- How to skip callbacks
- Challenge: Callbacks
- Solution: Callbacks
- Work with associations
- Validate presence with belongs_to
- Destroy dependent-related records
- Has and belongs to many relationships
- Rich join associations
- Traversing a rich join association
- Joining tables during queries
- Next steps
Taught by
Kevin Skoglund
Related Courses
Web Application ArchitecturesUniversity of New Mexico via Coursera Full Stack Foundations
Udacity Rails with Active Record and Action Pack
Johns Hopkins University via Coursera Ruby on Rails: An Introduction
Johns Hopkins University via Coursera Ruby on Rails Web Services and Integration with MongoDB
Johns Hopkins University via Coursera