ActiveRecord::AssociationTypeMismatch

This is the same problem as your undefined method: the autoloading is getting screwed, probably because of you requiring a class by hand that you didn't need to. This results in there being more than one instance of the TaskUser class hanging around: the one from before rails reset your application following the previous request and the one from the new request.

Fred