Where is the documentation for using really vanilla javascript in a rails app? I literally have 3 functions, maybe 100 lines of code, that I need on a couple of pages. All the docs I’m finding are assuming significant machinery on the javascript side, with frameworks and modules and preprocessors and such.
@CoralineAda i just drop it in a <script></script> 🤣
@mnl @CoralineAda tbh this is decent advice!! Or even in your assets directory or public/
@CoralineAda I need to amend that I'm new to rails, and don't know if this is best practice or not. but you know, if it works it works
@CoralineAda just use the good ol‘ Assets Pipeline with sprockets.