change cap file to rails 4