Updating to rails 3.1.16 or later.