I have f.association
that brings all registered clients. On the client I have a status
field.
I would like that when the status is false
, the client appears in the select box, but it is not selectable, is this possible?
I know how to use disabled
in HTML, what I need to know is whether I can 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