Ruby on Rails 6: Resources for working with Webpacker, jQuery, and CoffeeScript

Feature thumb ruby on rails

This guide explains how to work with webpacker and specifically how to add jquery:

And then this guide shows how to add custom javascript code:

If you want to use coffeescript, you can add coffee script to the javascript asset pipeline by following this guide: