Commenting out generate_html method as it was breaking at capture(item, &@block) so we can continue with fixing other problems. Need to revisit this - aparently capture was broken in Rails 3.1 but should have been fixed for 3.2.