# Render multiple tags using helper method

**URL:** <https://www.ruby-forum.com/t/render-multiple-tags-using-helper-method/131610>\
**Category:** Rails\
**Created:** [March 11, 2008, 10:01pm UTC](https://www.ruby-forum.com/t/render-multiple-tags-using-helper-method/131610 "2008-03-11T22:01:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tommy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/b5a626/32.png) [@tommy](https://www.ruby-forum.com/u/tommy)\
**Post date:** [March 11, 2008, 10:01pm UTC](https://www.ruby-forum.com/t/render-multiple-tags-using-helper-method/131610/1 "2008-03-11T22:01:59Z")

</div>

I want to generate a few tags wrapped with a single helper method. For  
example, I want to generate 5 text\_fields by calling a helper method.  
Can I do that? As far as I know, you can only render once in the  
helper method (I have tried it and only one or none render method  
takes effect.) For example, I use a loop contains a text\_field\_tag  
method in the helper. It doesn’t work properly. Only one  
text\_field\_tag appears. The way I use to solve this problem is put 5  
text\_fields in a partial template and use helper method to call the  
partial. But the partial is a little ugly because it has some loops  
there. How to solve this problem? Any suggestions?
