How to disable select menu

<%=userinfo.select :profile,Profile.find(:all,:conditions => {:role_type
=> “AC”}).collect {|c| [ c.name, c.id ] },{},{:class => “companyselect”}
%>
how to disable the above select menu …
i can able to disable the text field tag like below
<%=text_field_with_auto_complete :company_info, :name,:value =>
“#{@companyinfo.name}”,:disabled => true%>
Any helps for my query…
Thanks

Hi,

 Are you looking at disabling the whole select menu or only few of 

the
options? The following link might have the one your looking into:

http://api.rubyonrails.org/classes/ActionView/Helpers/FormOptionsHelper.html

Best Wishes,
Saideep Annadatha
whol.ly
http://saideep.tk

On Fri, Aug 14, 2009 at 8:49 AM, Newb N.
<[email protected]

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