How to add Notifications to Rails with Noticed

  Рет қаралды 17,858

GoRails

GoRails

Күн бұрын

► Check out gorails.com for Pro episodes and more!
► SaaS business template for Ruby on Rails with built-in features like Payments, Teams, and much more: jumpstartrails...
► Ruby on Rails hosting with Hatchbox.io: hatchbox.io
► Learn how to add Stripe Payments (with SCA support!) with Ruby on Rails: courses.gorail...
Noticed - github.com/exc...
Adding notifications to Rails has been something I've dreaded for years. Building Jumpstart Pro, I wanted to add notifications, but if I was going to add them, I wanted to do it "right".
Noticed is the gem I created to handle notifications for Rails apps. You can define all your notifications and organize the logic needed to deliver them in one place. They can be delivered to many different delivery methods, each running in their own background job. This allows you to handle failures gracefully without duplicates.
I wanted this gem to be easy to customize, so we've tried to add all the features you'd want out of the box. Give it a try and let me know what you think!

Пікірлер: 25
@nimashariatian2884
@nimashariatian2884 2 жыл бұрын
Chris you are a Saint! Thank you so much for supporting the Rails community!
@GorailsTV
@GorailsTV 2 жыл бұрын
Thanks Nima!
@antonina8379
@antonina8379 2 жыл бұрын
hi Chris just wanted to thank you for your work. Very nice, simple and efficient, Noticed is great for all of us.
@lucaskuhn7884
@lucaskuhn7884 4 жыл бұрын
Another great tutorial! Thank you Chris
@juliancheal
@juliancheal 4 жыл бұрын
I just started implementing notifications, so this will be much better as I still needed to do the different types of notifications. Thank you!
@GorailsTV
@GorailsTV 4 жыл бұрын
Awesome! Let me know how it goes!
@juliancheal
@juliancheal 4 жыл бұрын
@@GorailsTV Hey Chris. Few bumps along the way, I will try and write it up to add to the readme, but I've added, db, ActionCable, Email, & Twilio. Where as my existing design, just had db, and ActionCable via creating an Sidekiq job. So you've helped to simply my codebase, *and* make it easier to add extra delivery services. Many many thanks!
@GorailsTV
@GorailsTV 4 жыл бұрын
@@juliancheal That's awesome to hear! Thanks for filing that GitHub issue btw! It's got a lot we can improve, but I feel like it's a solid foundation we can build on.
@yeinercarvajalquina7727
@yeinercarvajalquina7727 Жыл бұрын
This is very useful, thank a lot, you are master!
@chibuezeayogu538
@chibuezeayogu538 3 жыл бұрын
Hi, great tutorial. Please can we get a link to the repo if was published?
@whyimustusemyrealname3801
@whyimustusemyrealname3801 3 жыл бұрын
hi chris could you give example how to use read_at ? how to update it when our user read the notif?
@thelinuxguy213
@thelinuxguy213 2 жыл бұрын
Thanks for this clear and very helpful tutorial and i was wondering if you could make the .md files on github for each delivery methods more detailed that would be very helpful, thanks
@ashwinm4u
@ashwinm4u 4 жыл бұрын
You bet we will be on the github issues ;)
@hasannadeem8451
@hasannadeem8451 2 жыл бұрын
Hi Chris, how is the Actioncable support going to handle notifications for individual users? i.e how does it create/know the stream of the given or the default channel to which it is supposed to send the message? Does it make use of the current_user attribute to handle the stream creation/finding?
@GorailsTV
@GorailsTV 2 жыл бұрын
Yep, it uses the current user as the stream so when you send to that stream, that user will receive the message.
@JustBCWi
@JustBCWi 3 жыл бұрын
Updating this for Turbostream?
@GorailsTV
@GorailsTV 3 жыл бұрын
Great idea! Really the only change would be to add an ID to the navbar and broadcast lines to the model so the append can publish to the navbar. Nothing Noticed specific really. 👍
@axelb423
@axelb423 3 жыл бұрын
@@GorailsTV +1 for a turbo stream notif system.
@kiyooswrld7420
@kiyooswrld7420 4 жыл бұрын
Hi. Can you share your vimrc?
@DevBishwasBh
@DevBishwasBh 2 жыл бұрын
Is it still functional with Rails 7?
@GorailsTV
@GorailsTV 2 жыл бұрын
Of course, why wouldn't it be?
@DevBishwasBh
@DevBishwasBh 2 жыл бұрын
@@GorailsTV Indeed it is. I was in Ruby 2.7 so got some issues, now with Ruby3.0.0, it's cool.
@yishat.lunamartinez6908
@yishat.lunamartinez6908 4 жыл бұрын
Is there a way to send the notifications to a cellphone from rails?
@GorailsTV
@GorailsTV 4 жыл бұрын
Yeah, You can send push notifications from rails.
Coding a FULL App with AI (You Won't Believe This)
15:19
Creator Magic
Рет қаралды 147 М.
Random Emoji Beatbox Challenge #beatbox #tiktok
00:47
BeatboxJCOP
Рет қаралды 60 МЛН
amazing#devil #lilith #funny #shorts
00:15
Devil Lilith
Рет қаралды 18 МЛН
How to Use ActionText in Rails 6
12:08
GoRails
Рет қаралды 18 М.
Send Notifications in Rails with Noticed v2
23:45
GoRails
Рет қаралды 7 М.
The Ruby On Rails Junior Developer Problem
16:03
Deanin
Рет қаралды 20 М.
Web push with Ruby on Rails
33:19
CJ Avilla (cjav_dev)
Рет қаралды 5 М.
Deploy Ruby on Rails to Render
9:14
Leabs
Рет қаралды 4,5 М.
Dynamic Select Fields in Rails using Hotwire
19:46
GoRails
Рет қаралды 25 М.
noticed gem with webpush in Ruby on Rails
21:59
CJ Avilla (cjav_dev)
Рет қаралды 2,4 М.
Rails Tutorial | Action Cable Basics in Rails 6
20:07
Techmaker Studio
Рет қаралды 21 М.
Random Emoji Beatbox Challenge #beatbox #tiktok
00:47
BeatboxJCOP
Рет қаралды 60 МЛН