Closed jbuckle closed 10 years ago
Rails handles very short file objects by writing them to strings in memory, meaning that a call to params[:file].read occasionally throws a NoMethodError. This case should be manually checked for in controller actions that deal with a file object.
Just kidding actually -
Rails handles very short file objects by writing them to strings in memory, meaning that a call to params[:file].read occasionally throws a NoMethodError. This case should be manually checked for in controller actions that deal with a file object.