How to disable textbox in Ruby?

Hi,
I want to disable textbox in my page so that user can not modify its
contents. How can we do that in ruby?

Thanx,
Prash

This is not related to ruby but html.

Please change the view code to make it enable or disable.

-Nathan

<%= text_field ‘object’, ‘method’, “disabled”=>“disabled” %>

“readonly” will also work.

On Monday, May 08, 2006, at 3:51 PM, wrote:

Hi,
http://lists.rubyonrails.org/mailman/listinfo/rails


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails

or…

<%= text_field ‘object’, ‘method’, “disabled”=>“disabled” %>

_Kevin