bcparanj-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Jun-24 00:07 UTC
Optional Image Upload
Attachment_fu is making an assumption that image will always be uploaded. This is causing problem in my application where the field is optional. Does anyone know how to make the image upload optional without blowing up the app? Is there any other plugin that does not make such an assumption? TIA. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
bcparanj-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:> Attachment_fu is making an assumption that image will always be > uploaded. This is causing problem in my application where the field is > optional. Does anyone know how to make the image upload optional > without blowing up the app? > > Is there any other plugin that does not make such an assumption? TIA.I haven''t tried attachment_fu, but the file_column plugin lets you specify (or omit) validates_presence_of just like you would with any other attribute. Chris Kampmeier -- 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 -~----------~----~----~----~------~----~------~--~---