I am working on a Rails app that involves my users uploading used items for sale. When they upload an item, they will also be uploading a photo of that item (in the future, possibly multiple images). So, the image will obviously be associated with the item listing and the user listing it. Currently, I am thinking of storing the images on the server in the file system, but not totally sold on that option. Maybe you guys could also recommend an appropriate storage method. Which plugin would you guys recommend to handle this, Paperclip or Attachment_fu? What are the main differences between the two and which is easier to setup and use for my case? Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Paperclip is simpler to setup and it does what you''re looking for, but AttachmentFu has more features, like selecting which image processing tool and storage medium (you can even store files in a Amazon S3 bucket), so, if you''re planning on expansion, AttachmentFu might be a better option, if you''re just looking for a simple tool what works, Paperclip may be better. On Thu, Sep 18, 2008 at 10:39 AM, CPerry <cory-jEJZ73ctDLTqlBn2x/YWAg@public.gmane.org> wrote:> > I am working on a Rails app that involves my users uploading used > items for sale. When they upload an item, they will also be uploading > a photo of that item (in the future, possibly multiple images). > > So, the image will obviously be associated with the item listing and > the user listing it. Currently, I am thinking of storing the images on > the server in the file system, but not totally sold on that option. > Maybe you guys could also recommend an appropriate storage method. > > Which plugin would you guys recommend to handle this, Paperclip or > Attachment_fu? What are the main differences between the two and which > is easier to setup and use for my case? > > Thanks! > > >-- Maurício Linhares http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/ (en) João Pessoa, PB, +55 83 8867-7208 --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Yeah, my main concern is expansion for later. I think I potentially have a project that could get rather large with many users and likely 1,000''s of items listed. Attachment_Fu seems like the way to go, but I found out about Paperclip yesterday and it seems really nice. But, like you said, having those extra options may benefit me more in the long run. --Cory On Sep 18, 9:46 am, "Maurício Linhares" <mauricio.linha...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Paperclip is simpler to setup and it does what you''re looking for, but > AttachmentFu has more features, like selecting which image processing > tool and storage medium (you can even store files in a Amazon S3 > bucket), so, if you''re planning on expansion, AttachmentFu might be a > better option, if you''re just looking for a simple tool what works, > Paperclip may be better. > > > > On Thu, Sep 18, 2008 at 10:39 AM, CPerry <c...-jEJZ73ctDLTqlBn2x/YWAg@public.gmane.org> wrote: > > > I am working on a Rails app that involves my users uploading used > > items for sale. When they upload an item, they will also be uploading > > a photo of that item (in the future, possibly multiple images). > > > So, the image will obviously be associated with the item listing and > > the user listing it. Currently, I am thinking of storing the images on > > the server in the file system, but not totally sold on that option. > > Maybe you guys could also recommend an appropriate storage method. > > > Which plugin would you guys recommend to handle this, Paperclip or > > Attachment_fu? What are the main differences between the two and which > > is easier to setup and use for my case? > > > Thanks! > > -- > Maurício Linhareshttp://alinhavado.wordpress.com/(pt-br) |http://blog.codevader.com/(en) > João Pessoa, PB, +55 83 8867-7208--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Sep 18, 3:00 pm, CPerry <c...-jEJZ73ctDLTqlBn2x/YWAg@public.gmane.org> wrote:> > But, like you said, having those extra options may benefit me more in > the long run. > > --Cory >Hi Cory, I''ve used both on separate projects and agree with Mauricio that Paperclip is easier to use but it is really only for use where you have a model (e.g. Person), who has an attribute of photo. If you want the Person to have multiple photos, you would need to use attachment_fu and if you want the photo to have its own attributes (e.g. title, location), attachment_fu would be the way to go. Best Regards Robin --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
paperclip allows you to use s3 buckets. checkout http://dev.thoughtbot.com/paperclip/classes/Paperclip/ClassMethods.html#M000004. dunno why it's not more prominently displayed [in the readme or whatever]. gotta say, paperclip is just plain easy to setup. <3 simplicity. disclaimer: i've never used attachment_fu but frequently hear people having problems with configuring it. something i don't really hear with paperclip. [seriously (joking)... if you can't get paperclip working... you probably can't get rails up either.] RSL On Thu, Sep 18, 2008 at 9:46 AM, Maurício Linhares < mauricio.linhares@gmail.com> wrote:> > Paperclip is simpler to setup and it does what you're looking for, but > AttachmentFu has more features, like selecting which image processing > tool and storage medium (you can even store files in a Amazon S3 > bucket), so, if you're planning on expansion, AttachmentFu might be a > better option, if you're just looking for a simple tool what works, > Paperclip may be better. > > On Thu, Sep 18, 2008 at 10:39 AM, CPerry <cory@coryperry.com> wrote: > > > > I am working on a Rails app that involves my users uploading used > > items for sale. When they upload an item, they will also be uploading > > a photo of that item (in the future, possibly multiple images). > > > > So, the image will obviously be associated with the item listing and > > the user listing it. Currently, I am thinking of storing the images on > > the server in the file system, but not totally sold on that option. > > Maybe you guys could also recommend an appropriate storage method. > > > > Which plugin would you guys recommend to handle this, Paperclip or > > Attachment_fu? What are the main differences between the two and which > > is easier to setup and use for my case? > > > > Thanks! > > > > > > > > > -- > Maurício Linhares > http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/ (en) > João Pessoa, PB, +55 83 8867-7208 > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Thu, Sep 18, 2008 at 7:54 AM, Robin Fisher <robinjfisher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:> > On Sep 18, 3:00 pm, CPerry <c...-jEJZ73ctDLTqlBn2x/YWAg@public.gmane.org> wrote: > > > > But, like you said, having those extra options may benefit me more in > > the long run. > > > > --Cory > > > > Hi Cory, > > I''ve used both on separate projects and agree with Mauricio that > Paperclip is easier to use but it is really only for use where you > have a model (e.g. Person), who has an attribute of photo. If you > want the Person to have multiple photos, you would need to use > attachment_fu and if you want the photo to have its own attributes > (e.g. title, location), attachment_fu would be the way to go. > > Best Regards > > Robin >I have used both extensively. You can just as easily have a separate model for the purpose of having multiple photos with paperclip, as you can with attachment_fu. One key advantage of paperclip over attachment_fu when you have many images is that paperclip only needs one record for the image and all its thumbnails, whereas attachment_fu uses a database record for each thumbnail as well. When you are dealing with hundreds of thousands of images, this decreased database usage can become significant. -- Benjamin Curtis http://railskits.com/ - Ready-made Rails code http://catchthebest.com/ - Team-powered recruiting http://www.bencurtis.com/ - Personal blog --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---