Disabling text_field

Hi ,
Anyone knows how we can disable <% text_field %> .
Thanx,
Rathish

text_field(object, method, options_hash)

<%= text_field(“user”, “name”, { :size => 20, :disabled => true }) %>

<%= text_field ‘object’, ‘some_method’, {‘disabled’ => ‘disabled’} %>

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