re-usable UI patterns

I'm a newbie and I was wondering whether there are repositories of
views and controllers targeted to specific designs. For example, I'd
like to dynamically add forms in a view, e.g., to allow the user to
enter an unknown number of purchase records.

Is there such a Rails repository somewhere?

TIA,
David

p.s. I'm working in Rails 2.0.2.

Check out Ryan Bates' Railscasts on complex forms:

http://railscasts.com/episodes/73
http://railscasts.com/episodes/74
http://railscasts.com/episodes/75

HTH

SH