Make sure you indent one level both for the contents of HTML elements and the contents of Ruby blocks -- this enables you to spot nesting issues and syntax errors much more easily.