completed upgrade to rails 4