revert rails to 4.0.4 because of incompatibilities with squeel