Finish update to rails 4