recursive ruby function in rhtml

preferably you would use a helper method or a partial.

just have the method/partial try and render itself within itself until the base case is reached