Hi All, Can someone please tell me how I can show database stored images within a template. I''ve managed to show them in a new screen with send_data but can''t seem to find how and if it''s possible to show it in the template. The only thing I''ve tracked in different references and books are displaying it on a new page. So could someone tell me if I''m chasing ghosts? Kind regards, Jeroen van Doorn --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
have you thought of trying acts as attachment or acts as column? -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 12/12/06, koloa <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > > have you thought of trying acts as attachment or acts as column?I think maybe Koloa meant file_column rather than acts_as_column? Both acts_as_attachment and file_column make it relatively easy to upload files (images) and store as blob. You can find them along with all the other major plugin references at http://wiki.rubyonrails.com/rails/pages/Plugins Blessings, Jeff --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
koloa schreef:> have you thought of trying acts as attachment or acts as column? > >Nope, I''ll look into this. Thanx! --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hello Jeroen, 2006/12/12, Jeroen van Doorn <jeroen.vandoorn@solide-ict.nl>:> Can someone please tell me how I can show database stored images within > a template. I've managed to show them > in a new screen with send_data but can't seem to find how and if it's > possible to show it in the template. The only thing I've tracked in > different references and books > are displaying it on a new page. So could someone tell me if I'm chasing > ghosts?You are 95% of the way there. You need an image tag that will display the image. Since you already have an action that displays the image, you simply need to tell the browser about it. <img src="/my/action/with/the/image.jpg" width="200" height="200"/> Hope that helps ! -- François Beausoleil http://blog.teksol.info/ http://piston.rubyforge.org/ --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---
Francois Beausoleil schreef:> Hello Jeroen, > > 2006/12/12, Jeroen van Doorn <jeroen.vandoorn-E86FVO77t+q01JO4HPFPPA@public.gmane.org>: > >> Can someone please tell me how I can show database stored images within >> a template. I''ve managed to show them >> in a new screen with send_data but can''t seem to find how and if it''s >> possible to show it in the template. The only thing I''ve tracked in >> different references and books >> are displaying it on a new page. So could someone tell me if I''m chasing >> ghosts? >> > > You are 95% of the way there. You need an image tag that will display > the image. Since you already have an action that displays the image, > you simply need to tell the browser about it. > > <img src="/my/action/with/the/image.jpg" width="200" height="200"/> > > Hope that helps ! > > ------------------------------------------------------------------------ > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.409 / Virus Database: 268.15.15/581 - Release Date: 9-12-2006 >Wow! I never thought of that ... how stupid :) Thanx! --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
How about flex_image http://beautifulpixel.textdriven.com/flex_image/index.html I ve been using it and it is very handy to play with images. On 12/12/06, Jeroen van Doorn <jeroen.vandoorn-E86FVO77t+q01JO4HPFPPA@public.gmane.org> wrote:> > Francois Beausoleil schreef: > > Hello Jeroen, > > > > 2006/12/12, Jeroen van Doorn <jeroen.vandoorn-E86FVO77t+q01JO4HPFPPA@public.gmane.org>: > > > >> Can someone please tell me how I can show database stored images within > >> a template. I''ve managed to show them > >> in a new screen with send_data but can''t seem to find how and if it''s > >> possible to show it in the template. The only thing I''ve tracked in > >> different references and books > >> are displaying it on a new page. So could someone tell me if I''m chasing > >> ghosts? > >> > > > > You are 95% of the way there. You need an image tag that will display > > the image. Since you already have an action that displays the image, > > you simply need to tell the browser about it. > > > > <img src="/my/action/with/the/image.jpg" width="200" height="200"/> > > > > Hope that helps ! > > > > ------------------------------------------------------------------------ > > > > No virus found in this incoming message. > > Checked by AVG Free Edition. > > Version: 7.1.409 / Virus Database: 268.15.15/581 - Release Date: 9-12-2006 > > > Wow! I never thought of that ... how stupid :) > > Thanx! > > > >-- Carl-Gustaf Harroch --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Would be another alternative, but I don''t need the extra options. So such a plugin would make my code(base) larger than nessacery. When I need to do image manipulation in the future, I''ll definitly will use fleximage Kind regards, Jeroen> How about flex_image > > http://beautifulpixel.textdriven.com/flex_image/index.html > > I ve been using it and it is very handy to play with images. > > On 12/12/06, Jeroen van Doorn <jeroen.vandoorn-E86FVO77t+q01JO4HPFPPA@public.gmane.org> wrote: > >> Francois Beausoleil schreef: >> >>> Hello Jeroen, >>> >>> 2006/12/12, Jeroen van Doorn <jeroen.vandoorn-E86FVO77t+q01JO4HPFPPA@public.gmane.org>: >>> >>> >>>> Can someone please tell me how I can show database stored images within >>>> a template. I''ve managed to show them >>>> in a new screen with send_data but can''t seem to find how and if it''s >>>> possible to show it in the template. The only thing I''ve tracked in >>>> different references and books >>>> are displaying it on a new page. So could someone tell me if I''m chasing >>>> ghosts? >>>> >>>> >>> You are 95% of the way there. You need an image tag that will display >>> the image. Since you already have an action that displays the image, >>> you simply need to tell the browser about it. >>> >>> <img src="/my/action/with/the/image.jpg" width="200" height="200"/> >>> >>> Hope that helps ! >>> >>> ------------------------------------------------------------------------ >>> >>> No virus found in this incoming message. >>> Checked by AVG Free Edition. >>> Version: 7.1.409 / Virus Database: 268.15.15/581 - Release Date: 9-12-2006 >>> >>> >> Wow! I never thought of that ... how stupid :) >> >> Thanx! >> >> > > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Is there any way to convert image type using flex_image or do i have to go all the way down to RMagick? I''m anal-retentive and all my images must be PNGs! -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---