Ok, and what do you have stored in @chart? I mean, what type should it be?
%h3\.header Students
\#chart\-container
\- content\_for :javascripts do
= @chart
%td
I had this problem before and it was related to indentation and haml.
Weird, haml is pretty strict with indentation, a mistake will raise a
complie exception. I'm pretty sure you're not showing the data the way
you should
The question about what kind of variable @chart is will be crucial in getting you any help. Also, it appears you might have intended = @chart to be indented beneath the content_for block, but it isn't.