Graphs and Plots in Rails

Ah! You're on Rails 1.2.x, right? See that '.png' at the end, you
don't want that. Unless you actually depend on rails tacking that on
for you, go to vendor/rails/actionpack/lib/action_view/helpers/ asset_tag_helper.rb and change image_path to be:

       def image_path(source)          # unless (source.split("/").last || source).include? (".") || source.blank?          # ActiveSupport::Deprecation.warn(          # "You've called image_path with a source that
doesn't include an extension. " +          # "In Rails 2.0, that will not result in .png
automatically being appended. " +          # "So you should call image_path('#{source}.png')
instead", caller          # )          # end

         compute_public_path(source, 'images')        end

and all should be OK. (the &'s are already escaped)

You probably also want to provide your own :alt => "description of the
chart" so it makes sense if Google doesn't return an image (or just
takes a while).

-Rob