I am using attachment_fu and want to do an update to an attachment. def update ...... attachment.update_attributes(params[:photo]) .... end this works fine for a form post to action update But I want to do this in the controller, where I open a local file and do the update. For example: def myupdate ... photofile = File.open(...) ..... attachment.update_attributes(some photo file) ... end I''ve seen some long winded way of creating a multipart file piece by piece. But is there an easiser way? (something like a file_upload in the test harness) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---