Fixing Rails configuration