migrating from ruby 1.8.7 to 2.0 and rails 3.0.7 to 4.0