TypeError: Object doesn't support this property or method

后端 未结 8 1428
梦如初夏
梦如初夏 2021-01-05 20:53

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

8条回答
  •  再見小時候
    2021-01-05 21:31

    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.

提交回复
热议问题