# Text\_field

**URL:** <https://www.ruby-forum.com/t/text-field/114495>\
**Category:** Rails\
**Created:** [September 13, 2007, 12:42pm UTC](https://www.ruby-forum.com/t/text-field/114495 "2007-09-13T12:42:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kabish](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/a88e57/32.png) [@kabish](https://www.ruby-forum.com/u/kabish)\
**Post date:** [September 13, 2007, 12:42pm UTC](https://www.ruby-forum.com/t/text-field/114495/1 "2007-09-13T12:42:07Z")

</div>

Hi there,

I’m trying to create a input text field in a rhtml webpage with some  
value already written, taken from the params, which the user can change  
by hand if neccesary. I cannot find some kinf of “value” option on the  
text\_field tag documentation. Can anyone help me?

Thanks,  
Alvaro.

---

<div class="post-metadata">

**Author:** ![kabish](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/a88e57/32.png) [@kabish](https://www.ruby-forum.com/u/kabish)\
**Post date:** [September 13, 2007, 1:06pm UTC](https://www.ruby-forum.com/t/text-field/114495/2 "2007-09-13T13:06:40Z")

</div>

OK here it is the syntaxis:

\<%= text\_field ‘sample’, ‘source\_ID’, ‘value’ =\> params[:source\_ID] %\>

Thanks!

Alvaro P. wrote:

> Hi there,
> 
> I’m trying to create a input text field in a rhtml webpage with some  
> value already written, taken from the params, which the user can change  
> by hand if neccesary. I cannot find some kinf of “value” option on the  
> text\_field tag documentation. Can anyone help me?
> 
> Thanks,  
> Alvaro.
