Be careful of indentation in your views as well. Each nested tag should be indented two spaces. The tags inside the each loop should be indented two spaces.