Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for associations resource cards #3686

Open
Paul-Bob opened this issue Feb 24, 2025 · 0 comments
Open

Add support for associations resource cards #3686

Paul-Bob opened this issue Feb 24, 2025 · 0 comments

Comments

@Paul-Bob
Copy link
Contributor

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 
@Paul-Bob Paul-Bob moved this to To Do in Issues Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To Do
Development

No branches or pull requests

1 participant