i have a table "upload_files" i want to join a file when i insert e record in the table : 1* insert into upload_files information about the file uploaded and who upload it upload_files.save ..... 2*copy the file in a special path (massi/id/) thanks -- 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 -~----------~----~----~----~------~----~------~--~---
massinissa mecharek wrote:> i have a table "upload_files" i want to join a file when i insert e > record in the table : > > 1* insert into upload_files information about the file uploaded and > who upload it upload_files.save ..... > > 2*copy the file in a special path (massi/id/) > > thanksYou may want to look into the Act_as_Attachment plugin for such task. You would have to override the full_filename method however. -- 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 -~----------~----~----~----~------~----~------~--~---