upgrading to rails-4