before upgrading rails
upgrade to rails 4.1 and ruby 2.1.2