fixed settings for rails 4