about string error for upload file in rails 2.1

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