We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creating a belongs_to record from the associated record screen doesn't work when buttons on form footer are enabled.
belongs_to
#1876 (comment)
Steps to reproduce the behavior:
config.buttons_on_form_footers = true
No route matches {:action=>"new", :controller=>"avo/$parent_model"}
It should open a new modal window with new parent record form. It shows no route error instead.
This is enough to reproduce the issue as long as config.buttons_on_form_footers = true is set in config/initializers/avo.rb:
config/initializers/avo.rb
./bin/rails g scaffold author name:string ./bin/rails g scaffold post title:string content:text author:references
Avo version: 2.43.0
Rails version: 7.1.1
Ruby version: 3.2.2
License type:
Are you using Avo monkey patches, overriding views or view components?
N/A
A bit more context in comments: #1876 (comment)
The text was updated successfully, but these errors were encountered:
Paul-Bob
Successfully merging a pull request may close this issue.
Describe the bug
Creating a
belongs_to
record from the associated record screen doesn't work when buttons on form footer are enabled.#1876 (comment)
Steps to Reproduce
Steps to reproduce the behavior:
config.buttons_on_form_footers = true
belongs_to
fieldbelongs_to
selectorNo route matches {:action=>"new", :controller=>"avo/$parent_model"}
Expected behavior & Actual behavior
It should open a new modal window with new parent record form. It shows no route error instead.
Models and resource files
This is enough to reproduce the issue as long as
config.buttons_on_form_footers = true
is set inconfig/initializers/avo.rb
:System configuration
Avo version: 2.43.0
Rails version: 7.1.1
Ruby version: 3.2.2
License type:
Are you using Avo monkey patches, overriding views or view components?
Screenshots or screen recordings
N/A
Additional context
A bit more context in comments: #1876 (comment)
Impact
Urgency
The text was updated successfully, but these errors were encountered: