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

Cannot have multiple buttons with the same name and value and different labels #27

@paulschreiber

Description

@paulschreiber

Currently, you cannot have multiple buttons with the same name and value and different labels.

This code results in two buttons, not three:

button_to :done, name: "voter[foo]", value: "0", id: "reason_skip_id_button", label: I18n.t(".skip_id")
button_to :done, name: "voter[foo]", value: "0", id: "reason_no_id_button", label: I18n.t(".no_id")
button_to :done, name: "voter[foo]", value: "1", id: "reason_has_id_button", label: I18n.t(".has_id")

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions