I'm trying to follow a tutorial on adding d3.js graph to Rails 4 application. The example application is on github and works as expected.
My problem is that when I try to replicate this application from scratch or add this graph to my existing project the js file in /app/assets/javascripts is not included in resources for some reason despite the fact that the //= require_tree . line is present in /app/assets/javascripts/applications.js files.
I can see this as the only problem since if I paste the code from problematic file into the console, it works.
I found similar questions and followed advice given but couldn't fix my problem.
I've already tried rake assets:precompile suggested here
Can anybody help?