Text_area and :value

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

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

text_area( “value” => “YOUR TEXT HERE”)


text_area( :value => “YOUR TEXT HERE”)


When I do this…

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

I get…



This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs