Question

I want to be able to generate this

<input id="address" type="textarea" value="Write your Address here.">

Using some ruby form helpers.

Any hints ?

Was it helpful?

Solution

I assume you meant textarea since there is no such thing as textbox.

http://apidock.com/rails/ActionView/Helpers/FormTagHelper/text_area_tag

if it's not tied to a field in your model

http://apidock.com/rails/ActionView/Helpers/FormHelper/text_area

if it is.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top