Upgrading ruby, rails and foundation