jQuery on ready helper plugins.
Add id/class to your body tag as follows:
<body id="<%= controller_name -%>-controller" class="<%= action_name -%>-action">
$(document).ready_for_selector("#awesome-controller.show-action", function() { "use strict"; . . . });
$(document).ready_for_controller("awesome", function() { "use strict"; . . . }); $(document).ready_for_controller_action("awesome", "show", function() { "use strict"; . . . });