Updates to rails 4