downgraded rails to version 4.0.2