Sha256: 3168aae1edadb13ccb650e33b345a17b5bf226a6c7fba103fe48e7b8a2b811c0
Contents?: true
Size: 582 Bytes
Versions: 33
Compression:
Stored size: 582 Bytes
Contents
<%# # Polymorphic Index Partial This partial renders a polymorphic relationship, to be displayed on a resource's index page. By default, the relationship is rendered as a link to the associated object. ## Local variables: - `field`: An instance of [Administrate::Field::Polymorphic][1]. A wrapper around the polymorphic belongs_to relationship pulled from the database. [1]: http://www.rubydoc.info/gems/administrate/Administrate/Field/Polymorphic %> <% if field.data %> <%= link_to( field.display_associated_resource, [namespace, field.data] ) %> <% end %>
Version data entries
33 entries across 33 versions & 3 rubygems