upgrading to Rails 4