new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

GitHub Primer · all subjects

forms

3 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Primer forms framework overview

Primer contains a framework for declaratively building Rails forms. It was designed specifically for accessibility and consistency with the Primer design system. The framework is designed to be accessible by default, integrates deeply with Rails, follows web standards, and adheres to Primer's form interface guidelines.

Forms as Ruby classes and view components

Forms are defined as Ruby classes that extend ApplicationForm with a form block. They are rendered like view components using primer_form_with helper. Example: class SignInForm < ApplicationForm with form do block containing sign_in_form.text_field and sign_in_form.submit, rendered as <%= render(SignInForm.new(f)) %>.

Primer forms accessibility design

The Primer forms framework is designed to address the fact that forms are a common source of accessibility issues that can hinder successful form completion and submission, affecting people with and without assistive technologies. Forms accessibility was a primary design consideration.

Give your agent this brain