upgrade to Rails 4