alternate field set for displaying has_many on show page
Created by: jmmastey
Hey, running into an issue with a client and I wanted to see if y'all would be interested in a PR for either of these potential solutions.
I have a record Company that has_many Users. I also have a users dashboard, with five or six columns defined on UserController#COLLECTION_ATTRIBUTES
. My problem is that showing a Company causes all six attributes to be displayed, which in the constrained space looks really poor:
Two solutions I'd be willing to implement and I think could work to fix this issue:
- Allow users to define an optional
EMBEDDED_COLLECTION_ATTRIBUTES
on UserDashboard, which the has_many partial can read to get the appropriate columns. - Allow some way to configure a max desired number of columns to show in the embedded collection.
Thanks! Really like the project.