You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think we should make this configurable.
The view of a has_one association simply displays the values of the association. In the case of another has_one association this should be its resource name.
The link to the association it's just an added feature to improve the navigation.
I'm going to close this because I think #1259 is the more ideal solution to this (showing some of the nested forms attributes) and it's been quite a while. Thanks for opening!
Hi there,
On the show view of a HasOne association, the attributes of the association are being shown:
Because some of the attributes are HasOne associations as well, the object it's just converted to string.
Locally, I've fixed this by checking if the attribute has an associated resource:
app/views/fields/has_one/_show.html.erb
I think the result looks nicer since it allows a simple navigation between models:
Would this be something you are interested to have? Should I make a PR?
The text was updated successfully, but these errors were encountered: