DEV Community

Discussion on: Rails 6: the missing developer setup guide

Collapse
 
ryanwjackson profile image
Ryan

I found in order to get jQuery $ to be defined properly, I had to follow step (3) here: botreetechnologies.com/blog/introd...

Otherwise, everything here worked.

Collapse
 
vvo profile image
Vincent Voyer

I found in order to get jQuery $ to be defined properly
Do you mean for window.$ to be available globally? If so yes that's the way to do it as seen here: webpack.js.org/plugins/provide-plu...

But I prefer to require it whenever I need it rather than relying on a global variable. Still, thanks for heads up!