converted app from rails 3 to rails 4