On Dec 24, 7:43 am, Tushar Gandhi <[email protected]> wrote: > Hi, > I am using "gruff" lib for creating the graphs. > I have got the success to create the graph, but my problem is I don't > want to store it, I want that they should be displyed on the browser it > self. > I have tried this:- > " > send_data(g.to_blob, :disposition => 'inline', :type => 'image/png', > :filename => "arbitaryfilename.png") " > > By using this it just shows that graph. > > I want to show the 5 graphs a a time. > Like:- as objects > I am going to create an object of the grohpa created and on vie I am > going to iterate that and show it one by one. > Can anyone tell me how should Iacehive this? >
You're already doing the right thing, but instead of sending user to the url of the graph itself, you need to send them to a page where the view has a number of img tags, for each one the src should be the url for one of your image generating actions. Fred > Thanks, > Tushar > -- > Posted viahttp://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

