Miscellaneous inputs
Aside from the set of component-based form inputs, Primer forms also features several additional inputs.
Hidden inputs
Primer supports standard hidden HTML inputs, eg. <input type="hidden">, via the #hidden method.
Usage
class ExampleForm < ApplicationForm form do |example_form| example_form.hidden(arguments) endend#hidden is a thin wrapper around Rails' hidden_field method and accepts the same arguments.
Separators
Occasionally it can be appealing to visually distinguish parts of a form from each other. The #separator method adds a horizontal rule between inputs.
Usage
class ExampleForm < ApplicationForm form do |example_form| example_form.separator endend#separator does not accept any arguments.