Hi First of all: I''am new to ruby and rails programming I want to add a few (fairly complex) bar and pie charts to my RoR site. I''ve tried sparklines but they are way to simple to fit my needs. Then i discovered gdgraph it works well if it is used as a cgi (<img src="/cgi-bin/gdgraph.cgi">) but if i try to use it in my Application Helper like this: application_helper.rb: module ApplicationHelper def createbarchart #A loot of gdgraph related code... send_data graph.out( 250, 200, STDOUT, GDChart::Graph::TYPE_3DBAR, data, x_labels) , disposition => "inline", type => "image/png" end end And put this in my controller: def printbarchart createbarchart end if i try to access the printbarchart method from my browser i get only a error message saying that the image can''t be displayed because it contains errors. However i "see" the image on the console where i started webrick. I guess thats because graph.out is sending its output to STDOUT insted of sending it to send_data. And thats my question: How can send the output of gdchart to send_data (in a clean and fast way) ? (it''s probably a stupid newbie question...) Thanks Phil ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de