How to disable textbox in Ruby?


#1

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


#2

This is not related to ruby but html.

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


#3

-Nathan


#4

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

“readonly” will also work.


#5

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

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


Rails mailing list
removed_email_address@domain.invalid
http://lists.rubyonrails.org/mailman/listinfo/rails

or…

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

_Kevin