bootstrap_form
bootstrap_form copied to clipboard
render problem
trafficstars
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")}))
dont use capture (f.email_field(:email, append: link_to("Go", "#", class: "btn btn-secondary")))