Is there a way to pass the value from <%= controller.controller_name %> <%= controller.action_name %> to JavaScript in the following manner?
return (document.body.className += " load-done
'<%= controller.controller_name %>' '<%= controller.action_name %>'
");
I have tried this setup but unfortunately, it does not seem to be working. Any suggestions on how to make this work?