Hi:

I have moved from using attachment_fu with files stored in the DB to
Paperclip using S3. The trick now is to migrate the files from the DB
to S3.

I have tried a few methods like:

SThreeFile.create(:file => AttachmentFuFile.first.data)

and

@attachment = AttachmentFuFile.first
SThreeFile.create(:file =>  ActionController::Streaming.send_data
@attachment.data, :filename => @attachment.name, :type =>
@attachment.content_type)

The first gives lots of output to the console but doesn't produce and
results. The second gives:
NoMethodError: undefined method `send_data' for
ActionController::Streaming:Module

Can anyone point me in the right direction?

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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to