Rails 4 bug