rails/rails — pull request #7314 by schneems (2012-08-10 05:06:51+00:00)
Title: Check for Blank Record in form_for

If nil or an empty array is passed into `form_for` you get a horrible error message, this one is much more indicative of what the programmer needs to know to fix the problem.

ATP in actionpack

Screenshot goodness:

![](http://f.cl.ly/items/1R323K2e1u2k1u2E3N0u/Screen%20Shot%202012-08-10%20at%2012.08.24%20AM.png)