updating to Rails 4