First argument in form cannot contain nil or be empty

I have two rails views/ controllers that basically do the same thing. Just accepts a comment, the first testcase comment works fine, I can create a new comment. The second testgroup comment, gives me an error when attempting to add a new record… First argument in form cannot contain nil or be empty

I compared these controllers and views side by side and I’m confused what would cause it to work in one case, but not the other.

My bad, i had a variable typo in my form. Lol.