use rails 3 syntax