% input = 'w-full px-4 py-3 bg-[#0a0a0a] border border-white/10 rounded-xl text-white placeholder-gray-600 focus:outline-none focus:border-[#f97316] focus:ring-1 focus:ring-[#f97316] transition-colors' rotulo = 'block text-sm font-medium text-gray-300 mb-1.5' toggle = "w-11 h-6 bg-gray-700 peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-[#f97316]" %> <%# URL explícita: a rota se chama `grupo`/`grupos` (ver routes.rb), então a rota polimórfica de `model:` procuraria admin_grupo_contato_path e estouraria. O `model:` continua valendo para nomear os campos (grupo_contato[...]). %> <%= form_with model: [:admin, grupo], url: (grupo.persisted? ? admin_grupo_path(grupo) : admin_grupos_path), data: { turbo: false }, class: 'bg-[#1a1a1a] rounded-2xl border border-white/5 p-8 space-y-6' do |f| %> <% if grupo.errors.any? %>
<%= pluralize(grupo.errors.count, 'erro', 'erros') %> encontrado<%= grupo.errors.count > 1 ? 's' : '' %>:
Opcional — ajuda a lembrar para que serve o grupo.
Grupo inativo não recebe nada, mesmo assinando eventos