seeding database with files stored on s3

33 views
Skip to first unread message

Joshua Sierles

unread,
Apr 8, 2012, 8:52:11 PM4/8/12
to carrierwave
To assist in development I like to have some avatars stored on S3. Is
there a way to populate the avatar field directly with a known text
value (the name of the file on s3)?

Thanks,
Joshua

Alexandru Emil Lupu

unread,
Jun 30, 2012, 6:01:56 AM6/30/12
to carri...@googlegroups.com
hello!
i have done something like that... but not on s3( i had the pics uploaded on a machine that wasn't in production).
this snippet helped me...

o = MyModel.create({}) # MyModel.find()
o.send[:image] = 'my string'
o.save

Sent from my iPhone

On Jun 29, 2012, at 2:12, rkrueger <ryank...@gmail.com> wrote:

I'm looking for a solution like this as well any ideas?

On Thursday, June 21, 2012 3:43:37 AM UTC-7, docgecko wrote:
Hi Joshua, did you solve this problem? if so, how did you access the avatars from S3?

--
You received this message because you are subscribed to the Google Groups "carrierwave" group.
To view this discussion on the web visit https://groups.google.com/d/msg/carrierwave/-/_b41SpksbP0J.
To post to this group, send email to carri...@googlegroups.com.
To unsubscribe from this group, send email to carrierwave...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/carrierwave?hl=en.

Bruno Machado

unread,
Jun 30, 2012, 7:03:29 AM6/30/12
to carri...@googlegroups.com, carri...@googlegroups.com
Hi

I use the remote_url and keep the files in another server so that they are available via http
I works very well

Sent from my iPad

On 29/06/2012, at 00:12, rkrueger <ryank...@gmail.com> wrote:

I'm looking for a solution like this as well any ideas?

On Thursday, June 21, 2012 3:43:37 AM UTC-7, docgecko wrote:
Hi Joshua, did you solve this problem? if so, how did you access the avatars from S3?

On Monday, 9 April 2012 01:52:11 UTC+1, Joshua Sierles wrote:

--
Reply all
Reply to author
Forward
0 new messages