upgraded the app to Rails 4