remove rails dependencies

removed rails dependencies.
all tests passed in 1.9.3 but several failures in 2.1.x