add rails 4 in action