Updating to rails 4