Delegated Types

Episode #553 by Teacher's Avatar David Kimura

Summary

In this episode, we'll explore the Delegated Types pattern and how to use it. We'll discuss different scenarios where it would be a good fit and where it would also be a bad fit.
rails model 30:50

Chapters

  • Introduction (0:00)
  • Creating the models (4:19)
  • Entryable Concern (7:54)
  • Entry model (10:25)
  • Helpers (11:29)
  • Scopes (12:43)
  • Creating the controller (13:32)
  • Views (21:53)
  • Demo (28:35)
  • Final Thoughts (29:58)
Student & Teacher
$ 9 /mo

Valid School Email Required

Same Access as Pro

Subscribe Now
Pro Monthly
$ 19 /mo

Access to Pro Episodes

Invite to Slack Channel

Priority Suggestions

Ad Free

Subscribe Now
Pro Annual
$ 190 /yr

Access to Pro Episodes

Invite to Slack Channel

Priority Suggestions

Ad Free

Subscribe Now
Teams
$ 57 /mo

3 Users Minimum

$19.00 / user / month

Same Access as Pro

Subscribe to Teams