update to Rails 4