I am using simple_form in my rails application. I want to disable a particular value in drop-down.
Here is part of the code
= simple_form_for(@organization,url: admin_organization_path) do |f|
= f.input :hospital_name, input_html: { class: "form-control"}
= f.input :parent, collection: @organizations, input_html: { class: "form-control", id: "chosen-select-speciality"}
I tried using :disabled => @organizations.first
but i was failed.
Is there any other method to use.Kindly help me. thanks.
chosen-rails
? – Roundtree