I am getting an undefined method 'encoding' error

I am using rails, rmagick and carrierwave and whenever I try to upload a file i get the following:
NoMethodError in RestaurantsController#create
undefined method `encoding’ for #ActionDispatch::Http::UploadedFile:0x007fc01e45c208

@davidzabner - what version of ruby are you running? I suspect it’s 1.8.x - if so, you should upgrade at least to 1.9.3 as UTF-8 / multibyte character handling improved drastically in ruby versions >= 1.9

If that’s not it, can you escape the error message somehow? It’s embedded in < > and that’s getting removed by the forum.