I have a structure in my rails assets directory which is shown below.
--javascripts -utils // directory helper.js session.js app.js application.js home.js
This above is my directory structure in rails. When i load my application i get the below error which i feel is the JS is not getting loaded properly
.
Uncaught TypeError: Cannot read property 'addMethod' of undefined additional-methods.min.js?body=1:3 Uncaught ReferenceError: Helper is not defined login.js?body=1:22 Uncaught TypeError: Cannot read property 'validate' of undefined
Below is my application.js
//= require jquery //= require jquery_ujs //= require bootstrap //= require vendor //= require_tree .
Is there anything specific if we have to do for loading files from a specific directory?. How to load the Utils
directory and other files in my application.js