I am using CarrierWave with Rails 3.1. I am getting the following error message when I submit the form (trying to upload an image):
Error Message:
Ac
I experienced the some problem and the cause is (probably always) that the UploadedFile object has been sent to the attribute carrierwave was mounted on. The db adapter cannot serialize this object and will therefore throw this error.
Make sure that:
write_attribute
to write the uploaded file (which was the cause of my problem). Use the accessor instead: model.send('image=', params[:model][:image])
. Uglier, but better.