running Rails 6.0.3.3 and can't get jQuery to work.
Here's packs/application.js
require("@rails/ujs").start()
require("turbolinks").start()
require("@rails/activestorage").start()
require("channels")
And in my view I have something like this:
<head>
<%= javascript_pack_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
</head>
<div id="pop">
TEST
</div>
<script>
$(document).ready(function() {
$('#pop').hide();
});
</script>
And so when my page loads I would expect the #pop div that says 'TEST' to NOT show. It seems as if this set up is just not working. Thoughts?