Skip to content

Add support for associations resource cards #3686

Open
@Paul-Bob

Description

@Paul-Bob

Context

Resource cards are not rendering correctly within associations because the generated path for each card neglects to account for the parent resource or record.

Let's augment support so that cards are rendered appropriately even when resources are displayed within association tables, such as those found in has many fields

Until support for rendering cards within associations is implemented, this issue can be avoided by employing the following workaround

def cards
  return if params.dig(:related_name).present?

  card ...
end 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    To Do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions