adjusted config files to rails 4