Sha256: b26841d3cb72d91e7dc4d2f083ee28fa62e8aee072d6a1bb8a90bfa42089b065

Contents?: true

Size: 554 Bytes

Versions: 18

Compression:

Stored size: 554 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.singularize) %>

Version data entries

18 entries across 18 versions & 3 rubygems

Version Path
administrate-0.17.0 app/views/fields/has_many/_index.html.erb
administrate-0.16.0 app/views/fields/has_many/_index.html.erb
administrate-0.15.0 app/views/fields/has_many/_index.html.erb
administrate-0.14.0 app/views/fields/has_many/_index.html.erb
viniBaxterDesk-22.0.0 app/views/fields/has_many/_index.html.erb
viniBaxterDesk-0.21.0 app/views/fields/has_many/_index.html.erb
viniBaxterDesk-0.20.0 app/views/fields/has_many/_index.html.erb
viniBaxterDesk-0.14.0 app/views/fields/has_many/_index.html.erb
viniBaxterDesk-0.13.2 app/views/fields/has_many/_index.html.erb
viniBaxterDesk-0.13.1 app/views/fields/has_many/_index.html.erb
administrate-0.13.0 app/views/fields/has_many/_index.html.erb
administrate-0.12.0 app/views/fields/has_many/_index.html.erb
administrate-0.11.0 app/views/fields/has_many/_index.html.erb
semantic-administrate-0.10.1 app/views/fields/has_many/_index.html.erb
semantic-administrate-0.10.0 app/views/fields/has_many/_index.html.erb
administrate-0.10.0 app/views/fields/has_many/_index.html.erb
semantic-administrate-0.1.1 app/views/fields/has_many/_index.html.erb
administrate-0.9.0 app/views/fields/has_many/_index.html.erb