I have created rails application where I created a database (empty). When I try to view my products page, I receive the following error on my http://localhost:3000/products
The reason is because NodeJS is not installed. If you install it, the problem should go away.
However, this would work as well in application.js
:
//= require jquery
//= require jquery_ujs
//= require turbolinks
// require_tree .
But this is just not the prefered method because all this does is disable rails functionality. For example, ActionCable will not work with this change.