and it doesn’t throw NoMethodError anymore, but the instance variable
is nil, which causes other errors.
I don’t think I’ve seen this issue brought up before, but I want to
make sure I’m not missing something before I start digging in the code
base. Has anyone else been bit by this?
Okay, so it seems the local partial variables, affiliation and
affiliation_counter, are actually named list and list_counter in the
layout, which makes sense since it’s using the name of the layout file
it’s probably more useful that way, actually.
So, no errors anymore, but the catch is the yield for each collection
item produces the concatenated output of the whole collection!
So
with partial _affiliation.html.erb: <%= affiliation.group %>