convert application to Rails 4