Reputation: 15501
Im trying to include a file in my view with:
= require Rails.root + 'app/assets/js_manual/counters/members.js'
cat /full/path/to/app/assets/js_manual/counters/members.js goes fine i see the contents of the file, just rails won't load it in
Is there anything I can do on this i suspect file/folder permissions but i cannot change my whole disk rights to get rails to load a single file in.
Upvotes: 0
Views: 284
Reputation: 12839
What you most likely want to do is
= javascript_include_tag '/js_manual/counters/members.js'
What you're doing now is using the ruby
language's require
primitive, which does not do what you want.
Upvotes: 3