# A handy way to display lists from collection def list(stuff, options = {}, &block) return content_tag(:p, "None") if stuff.nil? || stuff.empty? content_tag(:ul, stuff.map { |thingie| content_tag(:li, yield(thingie)) }, options) end