def convert_to_list_items(items, *args)
      default_options = {:stripe => true}
      options = default_options.merge(args.extract_options!)
      out = []
      items.each_with_index do |item, index|
        css = []
        css << "first" if items.first == item
        css << "last" if items.last == item
        css << "even" if options[:stripe] && index%2 == 1
        css << "odd" if options[:stripe] && index%2 == 0 # (First item is odd (1))
        out << content_tag(:li, item, :class => css.join(" "))
      end
      out.join("\n")
    end
def convert_to_list_items(items, *args)
      default_options = {:stripe => true}
      options = default_options.merge(args.extract_options!)
      out = []
      items.each_with_index do |item, index|
        css = []
        css << "first" if items.first == item
        css << "last" if items.last == item
        css << "even" if options[:stripe] && index%2 == 1
        css << "odd" if options[:stripe] && index%2 == 0 # (First item is odd (1))
        out << content_tag(:li, item, :class => css.join(" "))
      end
      out.join("\n")
    end
Give this helper an array, and get back a string of <li> elements.
 The first item gets a class of first and the last, well.. last.
 This makes it easier to apply CSS styles to lists, be they ordered or unordered.
 http://zeke.tumblr.com/post/98025647/a-nice-little-view-helper-for-generating-list-items