Revert "Update Rails version to 4.0.4"

This reverts commit 813c1ae0a78a908b9d4bb6913f0c0b02ea9b33b6.