I have a normal rails collection_select and select drop downs in my form. I want to disable any more selections in this drop down.
= f.collection_select :genre, DecodeConstant::PROJECT_TYP_DD, :id, :display_value, :html_options => { :disabled => @project.status == "RS_A" }
= f.select :currency_code, options_for_select([['Indian Rupee', 'INR'], ['United States Dollar', 'USD']]), :disabled => @project.status == "RS_A"
Both of these are not disabling the dropdown. Any suggestions?
1 Answer