I want to use some code from my old .js files in my current ruby on rails project. The plan is to give some data from rails to javascript libs and then view it. However I can't manage to bring it all together.
I've tried some advices from here and there and from some other sites (like this one, this one and plenty more). But the tips I found were useful for the older versions of rails, and didn't work on rails 5.2.3.
Almost every site has a tip about adding jQuery. But I don't use jQuery in these files. Furthermore rails includes it automatically, so I didn't change anything there.
I feel stuck with this problem. Any help will be appreciated!