Upate rails version
Finish refactoring projects controller