Keep an eye on your indentation -- the fact that these don't seem to line up with their opening tags tells me there could be some invalidly-nested HTML here, even though that's not the case. I always indent one level for the contents of any multi-line HTML tag, and indent one level for any Ruby code whose contents would normally be indented (like `if` and `each` blocks).