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
Show on edit screens
By default, has_many is only visible on the Show page. If you want to enable it on the Form pages as well you need to add the show_on: :forms option.
Click on '[ + Create new xxx ]' button
See error
Expected behavior
The new page is displayed.
Actual behavior
An error occurs.
System configuration
Avo version: 2.9.0
Rails version: 7.0.3
Ruby version: 3.1.2
License type (Community or Pro): Community
Screenshots
Additional context
It worked when I changed it to show_on: :edit.
Impact
High impact
Medium impact
Low impact
Urgency
High urgency
Medium urgency
low urgency
The text was updated successfully, but these errors were encountered:
Hey @shiroemons. This is my bad here. I'll update the docs now. The associations can be shown only on the :index, :show, and :edit screens. The :create view is not supported at the moment.
It needs some information from the parent like id, reflections, and others. So the flow here is to create an item (no associations visible), then go on the edit screen and add them.
You can control what happens after the creation process is finished so you could redirect the user directly to the edit screen.
Describe the bug
If
show_on: :forms
is specified,ActionController::UrlGenerationError
is raised when accessing new page.Steps to Reproduce
Steps to reproduce the behavior:
show_on: :forms
option.Expected behavior
The new page is displayed.
Actual behavior
An error occurs.
System configuration
Avo version: 2.9.0
Rails version: 7.0.3
Ruby version: 3.1.2
License type (Community or Pro): Community
Screenshots
Additional context
It worked when I changed it to
show_on: :edit
.Impact
Urgency
The text was updated successfully, but these errors were encountered: