updates to rails 4