# How can I disabled the text\_field element?

**URL:** <https://www.ruby-forum.com/t/how-can-i-disabled-the-text-field-element/151618>\
**Category:** Ruby\
**Created:** [October 23, 2008, 3:08pm UTC](https://www.ruby-forum.com/t/how-can-i-disabled-the-text-field-element/151618 "2008-10-23T15:08:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![asafdasa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/71c47a/32.png) [@asafdasa](https://www.ruby-forum.com/u/asafdasa)\
**Post date:** [October 23, 2008, 3:08pm UTC](https://www.ruby-forum.com/t/how-can-i-disabled-the-text-field-element/151618/1 "2008-10-23T15:08:56Z")

</div>

Hi all,

I saw in many places that I can disabled the text\_field easily, although  
I am still unable to do it.  
it will help me a lot …

tnx

Asaf

---

<div class="post-metadata">

**Author:** ![asafdasa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/71c47a/32.png) [@asafdasa](https://www.ruby-forum.com/u/asafdasa)\
**Post date:** [October 23, 2008, 3:31pm UTC](https://www.ruby-forum.com/t/how-can-i-disabled-the-text-field-element/151618/2 "2008-10-23T15:31:17Z")

</div>

On Thu, Oct 23, 2008 at 9:07 AM, Asaf A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi all,
> 
> I saw in many places that I can disabled the text\_field easily, although  
> I am still unable to do it.  
> it will help me a lot …

This belongs on the “Ruby on Rails” forum.

text\_field :foo, :disabled =\> true

Michael G.
