application.js - requires order
mdanlowski opened this issue · 1 comments
mdanlowski commented
HI!
A really cool tutorial :) One of the most bulletproof I've followed so far.
Dunno if it was already pointed out - apologies if so - but
//=require jquery3
and all the stuff
must come before
//=require_tree
. Otherwise js throws $ not defined in the browser.
The article says append the following...
and does not mention the order :)
just a cosmetic, though it might stave off some beginners
Cheers!
iridakos commented
Hi @mdanlowski and thank you very much for the feedback :)
You are right, the order of requirements in
application.js was not mentioned in the post. Post updated.