Fixing Rails config issues