Skip to content
This repository was archived by the owner on Oct 12, 2019. It is now read-only.
This repository was archived by the owner on Oct 12, 2019. It is now read-only.

as: :boolean rendering wrong HTML #128

@tibbon

Description

@tibbon

Inside a form:

= f.input :failed, as: :boolean

yields:

<div class="boolean input optional form-group checkbox" id="failed_input">
  <span class="form-wrapper">
    <input type="hidden" name="something[failed]" value="0">
    <label for="transfer_failed" class=" control-label">
    <input type="checkbox" name="something[failed]" id="something_failed" value="1">Failure Text</label>
</span>
</div>

Whereas I'm expecting something more like: https://github.com/twbs/bootlint/wiki/E017 which would be more like:

    .checkbox
      %label
        %input{type: 'checkbox'} Truth

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions