Just like we do every else (sometimes even on that very same file), we use the method instead of the instance variable. We're doing this change now because we're about to modify one of these files (the poll question answers documents index component).
22 lines
525 B
Plaintext
22 lines
525 B
Plaintext
<%= header do %>
|
|
<%= link_to t("admin.tenants.index.create"), new_admin_tenant_path %>
|
|
<% end %>
|
|
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th><%= attribute_name(:name) %></th>
|
|
<th><%= attribute_name(:schema) %></th>
|
|
<th><%= attribute_name(:url) %></th>
|
|
<th><%= t("admin.tenants.index.enabled") %></th>
|
|
<th><%= t("admin.shared.actions") %></th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<% tenants.each do |tenant| %>
|
|
<%= render Admin::Tenants::RowComponent.new(tenant) %>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|