This was interesting, since I'm still new to the Noticed gem. Hopefully you still find it helpful! I felt this was a good time to learn, because I needed it for other projects (Like the Instagram clone) Hope you enjoy!
@niladerp Жыл бұрын
I HAVE A DEMO IN TWO DAYS AND THIS SAVED MY LIFE. THANK YOU
@orce2 жыл бұрын
Love your videos and the fact that you are using WSL. Keep them coming!
@alexandremorey89932 жыл бұрын
Thank you very much for this video!
@adegbitekelvin38752 жыл бұрын
Reminder set (:
@moppnitz9 ай бұрын
noticed was updated since this came out. the setup seems to be very different from this. im having a lot of trouble figuring this out
@jimmydavid96748 ай бұрын
Did you figure it out?
@oksanagrigorenko3162 жыл бұрын
Thank you very much for your really cool tutorial about RoR!
@DevBishwasBh2 жыл бұрын
Rails is awesome and so you are.
@Deanin2 жыл бұрын
Haha I appreciate it.
@DevBishwasBh2 жыл бұрын
@@Deanin What do you is making the notifications models polymorphic an good idea?
@jeffreypau62402 жыл бұрын
Great video and series! I do want to mention that your "Post" model was set up with the "has_noticed_notifications" and the "has_many" relation which, according to the docs, would be for two separate models. I was running into issues in my version due to the "dependent: :destroy" on my has_many association on my Post model since the "has_noticed_notifications" already handles destroying notifications where the params post = post.
@nelsonchavespro2 жыл бұрын
I ran into the same issue. Were you able to fix it?
@jeffreypau62402 жыл бұрын
@@nelsonchavespro It's been a bit since I went through this tutorial but I believe I just had to remove the "dependant: :destroy" on any models using the "has_noticed_notifications". Like I mentioned in my previous commend the "has_noticed_notifications" already handles removing related notifications so we shouldn't add it on the "has_many" relation.
@moppnitz9 ай бұрын
@@jeffreypau6240were you using Noticed v2? im running into many issues myself. im pretty inexperienced so im having trouble adjusting to the new version.
Great tutorial, thank you so much! I wanted to add notifications to my rail app and this was so easy to follow and set up! I was wondering if I can use Noticed to create notifications for other actions on the same app (e.g. I have one set up for when a reservation is made for my property, but the customer doesn't get a notification if I make changes to their reservation) and display them all on the same dropdown on the navbar ? Thank you!
@farsiteguide2735 Жыл бұрын
Tnx for tutorial. This was hard stuff for newbies. Problem I have now is that on notifications I see all of them, from every user. So user a comment to user b post, user c sees notification as well as user a and b. I checked your code on git, but I cant find error in my code.
@hieptrinh21548 ай бұрын
anyone can help me with this issue! in model/comment.rb . what is "notifications_as_comment " and in post_controller where "notifications_as_post" in " def mark_notifications_as_read if current_user notifications_to_mark_as_read = @post.notifications_as_post.where(recipient: current_user) notifications_to_mark_as_read.update_all(read_at: Time.zone.now) end end " i don't know where did them defined? this is my error "uninitialized constant Notifications"