-
How can I define what field will be displayed for a "has_many" field when clicking the "attach" button? |
Beta Was this translation helpful? Give feedback.
Answered by
Paul-Bob
Oct 17, 2024
Replies: 1 comment
-
Hi @vianeyHA Avo renders the label for the select options on the attach modal using the The example that you shared uses
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Paul-Bob
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @vianeyHA
Avo renders the label for the select options on the attach modal using the
self.title
from the target resource.The example that you shared uses
self.title = :tiny_name
from the target (Avo::Resources::Comment
) resource.tiny_name
is a method (but could be directly an attribute) on theComment
model.