I don't know what your exact problem is, but you can try something like this in the seeds.rb file:
u = User.new({:name => 'username', :email => 'user@name.fr'...}) u.avartar = File.open('/Users/myAccount/avatars/user.png') u.save!
In your User.rb file, you must have a parcelclip configured to work with amazon s3
has_attached_file :avatar, :styles => { :large => "177x177>", :thumb => "60x60>" }, :storage => :s3, :s3_credentials => "#{RAILS_ROOT}/config/s3.yml", :path => "/avatars/:style/:id/:filename"
You can find in dogan kaya berktas blog post about s3.yml
guillaume06
source share