Set a default image in CarrierWave


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?


@chuckblake would this be of help: ?

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

thanks, I’ll check that out.