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

Form Builder

cgebken edited this page Nov 5, 2020 · 5 revisions

Beyond Canvas comes with its own form builder that provides input fields with extended functionality and CSS styles (e.g. for displaying validation error messages for input fields).

If you'd like to make use of the Beyond Canvas form builder, add builder: BeyondCanvas::FormBuilder to your form as follows:

<%= form_for product, builder: BeyondCanvas::FormBuilder do |form| %>
  # ...
<% end %>
<%= form_with model: product, local: true, builder: BeyondCanvas::FormBuilder do |form| %>
  # ...
<% end %>

Clone this wiki locally