changed app to rails 4