fix configuration for rails 4