Dennis Brown

Joined

1,210 Experience
12 Lessons Completed
0 Questions Solved

Activity

Posted in In-App Navbar Notifications Discussion

I did find myself having issues with the jQuery map method in the handleSuccess using Rails 5.1 (with jQuery). Instead I found the Ruby map works just fine:

items = data.map (notification) ->
  "<li><a class='dropdown-item' href='#{notification.url}'>'#{notification.sender} #{notification.action} a #{notification.notifiable.type}'</a></li>"