<% if (object = field.value(record)) %> <% object_resource = Madmin.resource_for(object) %> <%= link_to object_resource.display_name(object), object_resource.show_path(object) %> <% end %>