Wie kann ich einen versteckten Radio-Button mit Simple-Form bekommen?make simple form radio buttons versteckt
Ich weiß, dass einfache Form ein :as => :hidden
hat ein Formularfeld zu verstecken, und ein :as => :radio_buttons
ein Optionsfeld Option angezeigt werden ... aber ich kann nicht zwei as
Optionen auf einem Feld habe ... :)
Wie kann ich darüber gehen?
Was ich versucht habe:
= form.input :type,
:as => :radio_buttons,
:hidden => true,
:checked => ...
= form.input :type,
:as => [:radio_buttons, :hidden]
:checked => ...
= form.input :type,
:as => :radio_buttons,
:as => :hidden,
:checked => ...