Moving to rails 4 syntax