sorry,i have resolved this problem. File.open("#{RAILS_ROOT}/public/images/users/#{file_field.original_filename}","wb+") The "wb+" should be "wb".
sorry,i have resolved this problem. File.open("#{RAILS_ROOT}/public/images/users/#{file_field.original_filename}","wb+") The "wb+" should be "wb".