search for: unordered_list_tag

Displaying 1 result from an estimated 1 matches for "unordered_list_tag".

2006 May 21
0
UL/LI List helpers, or not?
Hello, I have a (bad) habit of abstracting nearly all my code. The DRY idea helps a lot. What I want is a simple helper to build UL LI lists: def unordered_list_tag(items => [], options => {}) if :items.count > 0 render :partial => ''application/unordered_list'', :locals => { items => :items, options => :options } end end And a simple general _unordered_list.rhtml, with a loop and some HTML to handle the...