Skip to content

Instantly share code, notes, and snippets.

@krsyoung
Created January 4, 2023 05:49
Show Gist options
  • Save krsyoung/8b15702f1155d480005ebb69feb0bf61 to your computer and use it in GitHub Desktop.
Save krsyoung/8b15702f1155d480005ebb69feb0bf61 to your computer and use it in GitHub Desktop.
<!-- replace the turbo frame with id="notifications" -->
<%= turbo_stream.replace :notifications do %>
<%= render(Notification::BadgeComponent.new(notifications: current_user.notifications)) %>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment