Notification Count

Episode #475 by Teacher's Avatar David Kimura

Summary

In this episode, we'll learn how to use Turbo to broadcast notification counts to users. We'll look at some common mistakes and issues when doing these kinds of broadcasts.
rails turbo streaming 15:59

Chapters

  • Introduction (0:00)
  • Setting up the Notifications (1:26)
  • Notification Partial (3:18)
  • Problems with current_user (5:37)
  • Generating a create notification mechanism (6:44)
  • Creating the broadcast mechanism (7:55)
  • Shake feature (10:17)
  • Shake Animation CSS (11:55)
  • Pet peave (13:27)
  • Scopes (14:13)
  • Final thoughts (15:25)
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