I have a CarrierWave rail loader. I want a seed database with fake users, so I am trying to add images to the same seed file. Images are in shared storage, so if I can just get the avatar strings in the database, they will work. When it saves users, although the image does not stick.
# db/seeds.rb user1 = User.create :email => " test1@test.com ", :password => "testing", :name => "Bob Dylan", :avatar => "v1357014344/bdylan.jpg" user1.save
source share