# Text\_field or text\_field\_tag

**URL:** <https://www.ruby-forum.com/t/text-field-or-text-field-tag/156542>\
**Category:** Rails\
**Created:** [December 29, 2008, 7:32pm UTC](https://www.ruby-forum.com/t/text-field-or-text-field-tag/156542 "2008-12-29T19:32:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zero0x](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/c6cbf5/32.png) [@zero0x](https://www.ruby-forum.com/u/zero0x)\
**Post date:** [December 29, 2008, 7:32pm UTC](https://www.ruby-forum.com/t/text-field-or-text-field-tag/156542/1 "2008-12-29T19:32:11Z")

</div>

Hi,

I’m watching Ryan B.’ forms screencast #1, and he says that I  
should use text\_field when I’m updating an object, otherwise  
text\_field\_tag.

How about this: I’m looping through each row of a table and displaying  
form for each. (but there’s only one form, because I want it to be  
submited all at once). Now I’m not sure how should I do it, so far I  
have something like text\_field(“item\_#{item.id}”, “title”, {:value =\>  
item.title});

Is this a good way?
