1
I have a f.association that brings all registered customers. In the client I have a field status.
I wish that when the status is false, client appears in select box, but is not selectable, this is possible?
I know how to use the disabled in HTML, what I need to know is if it is possible to do this with simple_form in Rails. For example: f.association, algum_parametro => false.
My code that generates this select is as simple as possible:
simple_form_for(@packing_list) do |f|
f.association :client
Adell, welcome to [en.so]! You could edit the question and post the snippet of your screen that generates the
select?– utluiz