For rails 4.0 tutorial