ActiveRecord::AssociationTypeMismatch

yes i seemed to get it sorted the other time but the error is coming up
again, in need to understand what might be causing this.

The same thing... you're passing a string to a method that expects an
associated object.