Disabling text_field


#1

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


#2

text_field(object, method, options_hash)

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


#3

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