When users go to my site, I want to render both the index.html.haml, as well as the index.js.haml. (I'm trying to get my JS out of the view.)
Currently, it just renders the html. Adding a respond_to block with both html and js just renders html of course.
How do I do this? Is there a better way? I don't want to include the JS in /assets/js, because ruby gets executed in the JS.