JD

Joined

10 Experience
0 Lessons Completed
0 Questions Solved

Activity

Posted in In-App Navbar Notifications Discussion

Hi, thanks so much for the tutorial! Two questions:

1- How can I create a page that displays all notifications, and display a link to this page in the dropdown when data.length >0 or 0? (i.e when there are and when there are not notifications, have a 'show all' item appear in the dropdown that brings you to a page with all your notifications

2- How can I make the json.url path in index.json.jbuilder dynamic for different types of notifications? i.e :
json.url users_friend_request_path(notification.notifiable) is the url for when the notification is a friend request, and I've tried string interpolation using notifiable.type and a few other things that did not work.