rails/rails — pull request #11000 by sbeckeriv (2013-06-18 21:26:11+00:00)
Title: Fix undefined method `ref' for nil:NilClass for bad accept headers

One commit for fixing:
Bad HTTP_ACCEPT can cause request.formats to return an array with nil

https://github.com/rails/rails/pull/10965

Full details at link above.