Heads up: If you want the graph to display in Rails 3.0, your template must use <%= @graph.html_safe %>