upgraded to Rails 4