reformated rails 4 post