Sachin Ashturkar
Joined
Activity
Thanks.
This did not work, instead produced runtime error.
I will be using jquery within stimulus controller instead, which worked for me.
Also, there are errors like: ActionController::RoutingError (No route matches [GET] "/images/ui-icons_555555_256x240.png")
I have copied these icons from the downloaded jquery-ui-1.13.0.custom zip file into the app/assets/images folder and inside app/assets/config/manifests added //= link_tree ../images
I have done all of the above. But, jquery is not available in my html.erb files inside the tag.<br> e.g. say inside app/views/home/index.html.erb</p> <script> $( () => { console.log("Hello World!"); });
I get the error:
Uncaught ReferenceError: $ is not defined
- Remove bin/ in Procfile.dev
- Then just run foreman start -f Procfile.dev