Replies: 1 comment 4 replies
-
Hi! |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
Spent several days with Noticed 2.0 and still can't configure setup for action_cable. Maybe someone have example? Or i miss something in docs?
Standard scenario: User need to have notice about different events (create export file, create pdf file and etc).
I add ExportNotifier and also have index (Notification) with turbo_frame and turbo_stream (with current_user).
I am also add authentication from action_cable docs.
Tried create ExportNotifier from console. And all good but notification not appear in list on index page (only after page reload).
I took basic setup:
deliver_by :action_cable do |config|
config.stream = ->{ recipient }
config.message = ->{ params.merge( user_id: recipient.id) }
end
If i add " config.channel = "Noticed::NotificationsChannel" " than have error about - unitialized constand Noticed::NotificationsChannel
Any help will be good :)
Beta Was this translation helpful? Give feedback.
All reactions