update controllers for rails 4