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? Thanks, Tushar -- Posted via http://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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Dec 24, 7:43 am, Tushar Gandhi <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Tushar Gandhi 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?Use <img> tags in an HTML file.> > > Thanks, > TusharBest, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.