Skip to content

as: :boolean option with include_hidden option #1377

Closed
@cristianogregnanin

Description

Hy, I don't want to generate the hidden field when I create a custom check box with as: :boolean option.
Is possibile to do something like this?

<%= f.input :my_custom_field_true, as: :boolean, include_hidden: false %>

Using the standard Rails check_box helper it works:
<%= f.check_box :my_custom_field_true, include_hidden: false %>
But I prefer to use simple form DSL.

Note: Rails 4 support include_hidden: false option. Is possible to force simple form to use it?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions