In rails 4 update_attributes takes 1 attribute