Truncate has_one field on index
#4221
-
|
Sometimes |
Beta Was this translation helpful? Give feedback.
Answered by
Paul-Bob
Jan 23, 2026
Replies: 1 comment 1 reply
-
|
Hi @manuelmeurer |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
manuelmeurer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @manuelmeurer
has_oneuses theAvo::Resources::MyFieldtarget resource's title to render that link, you can makeself.titleas lambda function and truncate it when the string is really long.https://docs.avohq.io/3.0/resources.html#self.title