Sha256: e3718ff8a6d0c822c547afeffef9f8c04c6227968fbfe0d812e41ba5146a37dd
Contents?: true
Size: 490 Bytes
Versions: 20
Compression:
Stored size: 490 Bytes
Contents
<%# # BelongsToSearch Show Partial This partial renders a belongs_to relationship, to be displayed on a resource's show page. By default, the relationship is rendered as a link to the associated object. ## Local variables: - `field`: An instance of Administrate::Field::BelongsToSearch. A wrapper around the belongs_to relationship pulled from the database. %> <% if field.data %> <%= link_to( field.display_associated_resource, [namespace, field.data], ) %> <% end %>
Version data entries
20 entries across 20 versions & 4 rubygems