Ruby on Rails
Monday, January 13, 2020
On my sn site I want users to know how many unread messages they have in the layout alongside the messages link I've got the messages system working with javascript channels and when messages are created and saved, or in plain English sent, my app/javascript/channels/room.js file is appending to the specified CSS selector of the view It works good without a lot of code Now to have the unread messages count displayed alongside the messages link in the layout I'm wondering how am I going to do this My first idea is react but looking at how much code react requires I'm thinking maybe this isn't the way to go, maybe there's a simpler way using the same room.js file to update messages link css selector in the layout ?
-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/1c06a3d3-ba10-4c73-9a4e-44adbfdf595f%40googlegroups.com.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment