Forum: Ruby on Rails UL/LI List helpers, or not?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Bèr K. (Guest)
on 2006-05-21 17:31

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 }

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 wiki or so where we can all share such small (yet
usefull) helpers?
This topic is locked and can not be replied to.