Form inputs

LesliView overrides common Rails builder methods to add the classes required by the shared form styles:

<%= form.label :name %>
<%= form.text_field :name %>
<%= form.email_field :email %>
<%= form.password_field :password %>
<%= form.check_box :active %>
<%= form.select :status, statuses %>
<%= form.submit "Save" %>

Existing class: values are merged with the Lesli class. The password helper retains the bound object's current value unless the caller explicitly supplies value:; consider the security implications before using it for credential forms.

text_editor(method) renders a hidden input with a Trix toolbar and editor. Use field_control_textarea for plain text and field_control_textarea_rich when the field explicitly requires the Lexxy rich-text editor.

 Edit this page

Last Update: 2026/10/22