All Lessons / Building has_one from has_many Associations

Building has_one from has_many Associations

#446 ยท May 16, 2022

Your Teacher

Collin Jilbert

Ruby on Rails Developer | Lover of Music | Skateboarder | Proud Papa | Co-editor @therubyradar | Launched @fleur_de_ruby

About This Episode

In this video, we will take a look at how to use a few association declaration options to build a couple of has_one associations off of a has_many association in Rails.

Notes

has_one_from_has_many repository
has_one Rails API documentation

Blog post walkthrough covering the topics mentioned here and adding uniqueness validations

Discussion

Loading...
logo Created with Sketch.

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

© 2022 GoRails, LLC. All rights reserved.