Jim Jones
2006-Aug-18 18:20 UTC
[Rails] How can I utilize this library within my Rails app?
How would I go about referencing the graphs that Scruffy generates within my Rails app? http://ibrasten.com/articles/2006/08/14/scruffy-0-2-0 Jim -- Posted via http://www.ruby-forum.com/.
Jim Jones
2006-Aug-18 19:11 UTC
[Rails] Re: How can I utilize this library within my Rails app?
I received this from Brasten: View: <img src="<%= url_for(:action => ''graph'') %>"/> Controller: def graph (... build your graph ...) send_data( graph.render( :as => ''PNG'', :width => 600 ), :type => ''image/png'', :disposition => ''inline'') end If you have a need for good looking graphs / charts, take a look at Scruffy. http://rubyforge.org/projects/scruffy/ Jim http://www.runfatboy.net Jim Jones wrote:> How would I go about referencing the graphs that Scruffy generates > within my Rails app? > http://ibrasten.com/articles/2006/08/14/scruffy-0-2-0 > > Jim-- Posted via http://www.ruby-forum.com/.