Special offers now — see discounted courses.
day
:
hour
:
min
:
sec
See special offers
Ruby on Rails Models and Associations

Ruby on Rails Models and Associations

1h 37mIntermediate2022-08-16

Authors

Kevin Skoglund

Kevin Skoglund

Founder of NovaFabrica

Course details

Ruby on Rails can speed up and improve the development of full-featured web applications through powerful tools that provide an object-oriented interface to relational databases and automate common data tasks. In this course, extend your knowledge of Ruby on Rails as instructor Kevin Skoglund covers the built-in features of models and associations in Rails. Learn to apply named scopes, validations, callbacks, and associations to a sample project. Find out how to design smarter models with attributes not in the database and by leveraging efficient queries. Walk through the most useful built-in validation methods and learn to write custom validations. Discover how to trigger automated behaviors as data is saved to the database by using callbacks. Explore effective use of Active Record associations, investigate one-to-many and many-to-many relationships, and learn to construct queries that span several tables.

Skills covered

Ruby on RailsBack-End Web DevelopmentFull-Stack Web DevelopmentWeb DevelopmentOpen SourceDeep Dive (X:Y)

Concepts

0. Introduction

  • 01 - Efficient, object-oriented data management
  • 02 - What you should know
  • 03 - Using the exercise files on GitHub

1. Smarter Models

  • 04 - Smart models by design
  • 05 - More ActiveRecord query methods
  • 06 - Select data from a query
  • 07 - Named scopes
  • 08 - Non-database attributes

2. Data Validations

  • 09 - Overview of validation methods
  • 10 - Write validations
  • 11 - Use the multipurpose validates method
  • 12 - Write custom validations

3. ActiveRecord Callbacks

  • 13 - Overview of callbacks
  • 14 - Use callbacks to automate actions
  • 15 - Execute callbacks conditionally

4. ActiveRecord Associations

  • 16 - Overview of associations
  • 17 - Create a one-to-many association
  • 18 - Use a one-to-many association
  • 19 - Destroy dependent related records
  • 20 - Has and belongs to many associations
  • 21 - Rich join associations
  • 22 - Traverse a rich join association
  • 23 - Join tables during queries

Conclusion

  • 24 - Next steps

About us

LyndaKade is a leading learning platform that helps people learn business, software, technology, and creative skills to achieve personal and professional goals.

Phone numberAparat ChannelTelegram SupportTelegram ChannelInstagram Page

All rights to this site belong to LyndaKade.

Terms of Service|Privacy Policy

نماد الکترونیک enamad در صورت اتصال با آی‌پی داخل کشور، نمایش داده خواهد شد.
logo-samandehi - لوگو ساماندهی
Zarinpal
Zibal