This episode basically covers this kind of functionality. https://www.driftingruby.com/episodes/realtime-client-updates-from-background-jobs-with-stimulus It does use Sidekiq instead of DelayedJob, but because it is using ActiveJob, you can swap one out for another fairly easy. Does that work, or would you like to see an episode on setting up DelayedJob?
Typically, there will be an example application or demo included and you can see if there is an entry point file which includes the other ones. Also, there might be some files asset compiling with something like Babel.
Which Bootstrap theme did you go with?
You can add this snippet to the `packs/application.js` or wherever appropriate.
```
$(document).ready(function () {
$(".sidebar, #sidebarToggleTop").on('click', function (e) {
$("body").toggleClass("sidebar-toggled");
$(".sidebar").toggleClass("toggled");
if ($(".sidebar").hasClass("toggled")) {
$('.sidebar .collapse').collapse('hide');
};
});
});
```