Skip to content

render problem #724

@Yasingthb

Description

@Yasingthb

The following code snippet provided in the documentation is not functioning as expected when used with Phlex framework:

f.email_field(:email, append: link_to("Go", "#", class: "btn btn-secondary"))
Instead of rendering the button correctly, it appears as a separate input element in the top right corner. However, when I use capture, it works correctly. Is this a known issue?

If I use capture it gives the result like this (f.email_field(:email, append: capture { link_to("Go", "#", class: "btn btn-secondary")}))

image

dont use capture (f.email_field(:email, append: link_to("Go", "#", class: "btn btn-secondary")))
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions