# How to disable select menu

**URL:** <https://www.ruby-forum.com/t/how-to-disable-select-menu/173747>\
**Category:** Rails\
**Created:** [August 14, 2009, 5:19am UTC](https://www.ruby-forum.com/t/how-to-disable-select-menu/173747 "2009-08-14T05:19:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![newb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/2acd7d/32.png) [@newb](https://www.ruby-forum.com/u/newb)\
**Post date:** [August 14, 2009, 5:19am UTC](https://www.ruby-forum.com/t/how-to-disable-select-menu/173747/1 "2009-08-14T05:19:18Z")

</div>

\<%=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

---

<div class="post-metadata">

**Author:** ![newb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/2acd7d/32.png) [@newb](https://www.ruby-forum.com/u/newb)\
**Post date:** [August 14, 2009, 7:17am UTC](https://www.ruby-forum.com/t/how-to-disable-select-menu/173747/2 "2009-08-14T07:17:45Z")

</div>

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:

> **[ActionView::Helpers::FormOptionsHelper](https://api.rubyonrails.org/classes/ActionView/Helpers/FormOptionsHelper.html)**
>
> Provides a number of methods for turning different kinds of containers into a set of option tags.

Best Wishes,  
Saideep Annadatha  
whol.ly  
[http://saideep.tk](http://saideep.tk)

On Fri, Aug 14, 2009 at 8:49 AM, Newb N.  
\<removed\_email\_address@domain.invalid
