I'm trying using ajax with rails-ujs but my call doesn't doing nothing. The application use the rails 5.1 and have the rails-ujs require in application.js
When i test the code in a browser console, it is return false.
Bellow is the code:
Rails.ajax({
url: "/notifications.json",
type: "GET",
success: function(data) {
console.log(data)
}
})