I'm having issues with in-app notifications on my App
Hello! Can someone please enlighten me on how to create notifications (In-app) for this type of routes
I want to display notifications when comments are made on episodes. This worked well when i did for genres and stories.
resources :genres do
resources :stories do
resources :episodes do
resources :comments
end
end
end
I actually want notifications for comments. Whwn i tried out the In-App notification tutorial on this website, i got an error undefined route "episode_path" in the** index.html.jbuilder file**, and i think i am not setting the notification URL well.
Help a friend.
Thanks.
Thanks for your response man. I did... something like this:
json.url genre_story_episode_path(@genre, @story, episode.id)(notification.notifiable.episode, anchor: dom_id(notification.notifiable))