Sha256: 56854d4d15bb25751994bb3ea44123a2c853054a5359e411fe7c53e571804349

Contents?: true

Size: 638 Bytes

Versions: 5

Compression:

Stored size: 638 Bytes

Contents

<%#
# HasMany Index Partial

This partial renders a has_many relationship,
to be displayed on a resource's index page.

By default, the relationship is rendered
as a count of how many objects are associated through the relationship.

## Local variables:

- `field`:
  An instance of [Administrate::Field::HasMany][1].
  A wrapper around the has_many relationship pulled from the database.

[1]: http://www.rubydoc.info/gems/administrate/Administrate/Field/HasMany
%>
<%#= pluralize(field.data.size, field.attribute.to_s.humanize.downcase) %>
<%= t("administrate.fields.#{field.attribute.to_s}",total_count: field.data.count).html_safe %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
viniBaxter-spa-nested_has_many-300.0.6 app/views/fields/nested_has_many/_index.html.erb
viniBaxter-spa-nested_has_many-300.0.5 app/views/fields/nested_has_many/_index.html.erb
viniBaxter-spa-nested_has_many-300.0.4 app/views/fields/nested_has_many/_index.html.erb
viniBaxter-spa-nested_has_many-300.0.2 app/views/fields/nested_has_many/_index.html.erb
viniBaxter-spa-nested_has_many-300.0.1 app/views/fields/nested_has_many/_index.html.erb