Forum: Ruby on Rails Disabling input Text box

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-19 08:32
Hi friends ,
I want to disable the text box we use in ruby on rails .How can I add
the disabled keyword inside <%= text_field 'invoice', 'inv_amount'
,"size"=> 15 %> .
I tried <%= text_field 'invoice', 'inv_amount' ,"size"=> 15 ,"disabled"
%>

Thanx and regards,
Naroor R.,
www.naroor.blogspot.com
Naroor R. (Guest)
on 2005-12-19 08:36
Sorry friends ,
   It can be done using
<%= text_field 'invoice', 'inv_amount',"size"=> 15,"Disabled"=>'' %>

Thanx for reading ,
Naroor R.,
www.naroor.blogspot.com
This topic is locked and can not be replied to.