I have a CustomInput < SimpleForm::Inputs::Base that I would like to avoid rendering if the attribute value is blank. IOW, I want to avoid rendering all the wrappers and components. Can I do this within the control to avoid writing if model.attribute.blank? for each control in my template?
I have a CustomInput < SimpleForm::Inputs::Base that I would like to avoid rendering if
Share
Just subclass the
FormBuilderand override theinputmethodmy_action_show?is just customApplicationHelpermethod that checks if