update by rails 4.0