use rails 4 syntax