Skip to content

Forms Created with bootstrap_form_with Without Model Fail for Placeholder #786

@lcreid

Description

@lcreid

The following will blow up with a no method for nil exception:

<%= bootstrap_form_with(url: send_new_email_confirmation_token_path) do |form| %>
  <%= form.email_field(:email, label_as_placeholder: true) %>
  <%= form.submit("Send me a confirmation link", class: "btn btn-primary btn-sm") %>
<% end %>

Metadata

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