Update to the latest rails. Remove the manual rack dependency, because Rails is strongly related to rack.