# Text\_area and :value

**URL:** <https://www.ruby-forum.com/t/text-area-and-value/93701>\
**Category:** Rails\
**Created:** [April 6, 2006, 9:33pm UTC](https://www.ruby-forum.com/t/text-area-and-value/93701 "2006-04-06T21:33:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sporkyy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c89c15/32.png) [@sporkyy](https://www.ruby-forum.com/u/sporkyy)\
**Post date:** [April 6, 2006, 9:33pm UTC](https://www.ruby-forum.com/t/text-area-and-value/93701/1 "2006-04-06T21:33:56Z")

</div>

I’m trying to use the text\_area() method and would like to populate the  
text block with initial text.  
According to this: [http://dev.rubyonrails.org/ticket/3752](http://dev.rubyonrails.org/ticket/3752) there was a  
fix put in place, but I’m ont sure how to integrate this.

How do I get the :value parameter to show up within the textbloc instead  
of the html attributes?

---

<div class="post-metadata">

**Author:** ![sporkyy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c89c15/32.png) [@sporkyy](https://www.ruby-forum.com/u/sporkyy)\
**Post date:** [April 6, 2006, 9:46pm UTC](https://www.ruby-forum.com/t/text-area-and-value/93701/2 "2006-04-06T21:46:11Z")

</div>

Just a guess, but I think one of these will work:

text\_area( “value” =\> “YOUR TEXT HERE”)

or

text\_area( :value =\> “YOUR TEXT HERE”)

-Adam

---

<div class="post-metadata">

**Author:** ![sporkyy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c89c15/32.png) [@sporkyy](https://www.ruby-forum.com/u/sporkyy)\
**Post date:** [April 7, 2006, 4:28am UTC](https://www.ruby-forum.com/t/text-area-and-value/93701/3 "2006-04-07T04:28:36Z")

</div>

When I do this…

\<%= text\_area( “post”, “textarea”, :value =\> “YOUR TEXT HERE”) %\>

I get…

not…

 YOUR TEXT HERE
