Set a default image in CarrierWave

Hello,

I want to set a default image for a CarrierWave field. The image will be set to one of several defaults (based on a category previously selected).

I tried, writing and saving the image name directly on the ActiveRecord field name but it’s not saving (I’m assuming that the CarrierWave object is expecting a file to process, not a string).

Any ideas on how I can go about setting a default image?

Thanks,
Chuck

@chuckblake would this be of help: GitHub - carrierwaveuploader/carrierwave: Classier solution for file uploads for Rails, Sinatra and other Ruby web frameworks ?

You can probably create fallback paths to support the several defaults.

thanks, I’ll check that out.