Formular
Last updated 11 August 2017 formular v0.1WORK IN PROGRESS.
Checkout the Bootstrap docs.
Bootstrap 3
Inline Forms
Instruct Formular to render an inline form via style: :inline
.
form(model, "/posts", style: :inline) do |f|
You can not pass a :label
into the control to skip rendering a label. Make sure to use :placeholder
, then. Alternatively, you can do as follows to suppress the label (this is the recommended Bootstrap way).
= f.input :url_slug,
label: "URL slug",
placeholder: "URL slug",
label_attrs: { class: ["sr-only"] }