class Posts::Form < ApplicationForm def view_template render field(:title).input.focus render field(:body).textarea(rows: 6) submit "Save" end end