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 Newb
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:
>
> <%=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
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---