%= form_for [:admin, tenant], html: { class: "tenant-form" } do |f| %> <%= render "shared/errors", resource: tenant %> <%= f.text_field :name %>