Hi all, I''m trying to add a file upload facility to a project I''m working on but I can''t work it out. I''ve read the RoR wiki on uploading files, and the cookbook, but the examples don''t seem to work for me. What I have is a model "record" which contains some data. It has_many''s another model "upload" which should hold the filename, content-type and size as well as a title for the upload. How would I go about letting the user upload the file and specify the necessary information? Pointers to any tutorials or examples that are relevant to my situation would be very helpful. Thanks Matt --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Possibly try the attachment_fu plugin! http://almosteffortless.com/2007/03/25/working-with-attachment_fu/ On Aug 26, 12:21 pm, Matt Harrison <iwasinnamuk...-ja4MoDZtUtVl57MIdRCFDg@public.gmane.org> wrote:> Hi all, > > I''m trying to add a file upload facility to a project I''m working on but > I can''t work it out. > > I''ve read the RoR wiki on uploading files, and the cookbook, but the > examples don''t seem to work for me. > > What I have is a model "record" which contains some data. It has_many''s > another model "upload" which should hold the filename, content-type and > size as well as a title for the upload. > > How would I go about letting the user upload the file and specify the > necessary information? > > Pointers to any tutorials or examples that are relevant to my situation > would be very helpful. > > Thanks > > Matt--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
file_column plugin can help u out. just google for it. On Aug 27, 1:49 am, KMiller <miller.kur...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Possibly try the attachment_fu plugin!http://almosteffortless.com/2007/03/25/working-with-attachment_fu/ > > On Aug 26, 12:21 pm, Matt Harrison <iwasinnamuk...-ja4MoDZtUtVl57MIdRCFDg@public.gmane.org> > wrote: > > > Hi all, > > > I''m trying to add a file upload facility to a project I''m working on but > > I can''t work it out. > > > I''ve read the RoR wiki on uploading files, and the cookbook, but the > > examples don''t seem to work for me. > > > What I have is a model "record" which contains some data. It has_many''s > > another model "upload" which should hold the filename, content-type and > > size as well as a title for the upload. > > > How would I go about letting the user upload the file and specify the > > necessary information? > > > Pointers to any tutorials or examples that are relevant to my situation > > would be very helpful. > > > Thanks > > > Matt--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
KMiller wrote:> Possibly try the attachment_fu plugin! > http://almosteffortless.com/2007/03/25/working-with-attachment_fu/On a quick glance that looks to be a very useful plugin. It''s late now but I''ll take a look at it later :) 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 -~----------~----~----~----~------~----~------~--~---