# Render multiple tags using helper method

**URL:** <https://discuss.rubyonrails.org/t/render-multiple-tags-using-helper-method/26164>\
**Category:** rubyonrails-talk\
**Created:** [March 11, 2008, 9:01pm UTC](https://discuss.rubyonrails.org/t/render-multiple-tags-using-helper-method/26164 "2008-03-11T21:01:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TOmmy](https://avatars.discourse-cdn.com/v4/letter/t/b5a626/32.png) [@TOmmy](https://discuss.rubyonrails.org/u/TOmmy)\
**Post date:** [March 11, 2008, 9:01pm UTC](https://discuss.rubyonrails.org/t/render-multiple-tags-using-helper-method/26164/1 "2008-03-11T21:01:12Z")

</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?
