upgarding to rails 4