search for: _unordered_list

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

Did you mean: unordered_list
2006 May 21
0
UL/LI List helpers, or not?
...s 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 view level. Now the questions: Is this a common RoR Way Of Doing Things? I see very little refercen to such helpers. Should I store the ''applicationwide'' partials in views/application, or is there a better place? Is there some...