update rails root
refactor config