I put the following function in my application.js:
function test() { alert(\"See Me\") }
classrooms/_new_small.html.haml:
Simple solution, remove escape_javascript, but it's dangerous see Why escape_javascript before rendering a partial? . Currently you want to execute
escape_javascript
$('#test_container').html("
which is converted into