Disabling input Text box

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.,

Sorry friends ,
It can be done using
<%= text_field ‘invoice’, ‘inv_amount’,“size”=> 15,“Disabled”=>’’ %>

Thanx for reading ,
Naroor R.,

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