Default scaffold makes a test.rb with errors

Lines 24, 29, 34, (39 and 40) show errors I received when I used -- trace when I db:migrate all saying:

test_should_show_contact(ContactsControllerTest): NoMethodError: undefined method `contacts'

Is the default file wrong. I can't see rails making a mistake in scaffold.

Lines 24, 29, 34, (39 and 40) show errors I received when I used -- trace when I db:migrate all saying:

test_should_show_contact(ContactsControllerTest): NoMethodError: undefined method `contacts'

Is the default file wrong. I can't see rails making a mistake in scaffold.

Normally contacts is a method that is magicked into existance because you have a contacts.yml fixture file. If you didn't (perhaps it ended up as contact.yml or something, which might happen if you gave a generator a plural when it expected a singular ( or vice-versa )) or if your test_helper.rb didn't say fixtures :all then you might get that error.

Fred

The application works fine in development mode, so I can't really see anything being wrong but I'll double check. I just keep getting the error 500 screen every time I deploy and these are the only errors I can find.