Forum: Ruby on Rails disabling text_field

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Naroor R. (Guest)
on 2005-12-28 12:31
Hi ,
    Anyone knows how we can disable  <% text_field  %> .
Thanx,
Rathish
Chris H. (Guest)
on 2005-12-28 15:25
(Received via mailing list)
text_field(object, method, options_hash)

<%= text_field("user", "name", { :size => 20, :disabled => true }) %>
Wilson B. (Guest)
on 2005-12-28 16:22
(Received via mailing list)
<%= text_field 'object', 'some_method', {'disabled' => 'disabled'} %>
This topic is locked and can not be replied to.