Tags from Scratch

Episode #452 by Teacher's Avatar David Kimura

Summary

In this episode, we create a tagging system for models that is highly reusable. We'll explore creating the tagging system, filtering on tags and persisting the tags in an unobtrusive way.
rails model tags 22:19

Chapters

  • Introduction (0:00)
  • Creating Database Tables (1:55)
  • Adding Javascript Library (3:11)
  • Creating the view (5:51)
  • Setting up the associations (8:34)
  • Implementing the tagging business logic (9:01)
  • Extracting model logic to a concern (10:56)
  • Adding the styling (11:53)
  • Demo up to this point (12:13)
  • Persisting the tags (12:55)
  • Displaying the tags (15:01)
  • Filtering tags (15:55)
  • Implementing tags on another scaffold (18:08)
  • Fixing some issues with our approach (19:23)
  • Final thoughts (21:46)
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