also works at Rails4.0