Hey there! Something's wrong with my
# general
b
Hey there! Something's wrong with my dynamic filters routing. When I click on a filter, I get an error:
Copy code
ActionController::RoutingError (No route matches [POST] "/avo-dynamic_filters/filters/fields")
rails routes
gives these paths for dynamic filters:
Copy code
Routes for Avo::DynamicFilters::Engine:
     fields GET    /filters/fields(.:format)           avo/dynamic_filters/fields#index
            POST   /filters/fields(.:format)           avo/dynamic_filters/fields#create
  new_field GET    /filters/fields/new(.:format)       avo/dynamic_filters/fields#new
 edit_field GET    /filters/fields/:id/edit(.:format)  avo/dynamic_filters/fields#edit
      field GET    /filters/fields/:id(.:format)       avo/dynamic_filters/fields#show
            PATCH  /filters/fields/:id(.:format)       avo/dynamic_filters/fields#update
            PUT    /filters/fields/:id(.:format)       avo/dynamic_filters/fields#update
            DELETE /filters/fields/:id(.:format)       avo/dynamic_filters/fields#destroy
    statics GET    /filters/statics(.:format)          avo/dynamic_filters/statics#index
            POST   /filters/statics(.:format)          avo/dynamic_filters/statics#create
 new_static GET    /filters/statics/new(.:format)      avo/dynamic_filters/statics#new
edit_static GET    /filters/statics/:id/edit(.:format) avo/dynamic_filters/statics#edit
     static GET    /filters/statics/:id(.:format)      avo/dynamic_filters/statics#show
            PATCH  /filters/statics/:id(.:format)      avo/dynamic_filters/statics#update
            PUT    /filters/statics/:id(.:format)      avo/dynamic_filters/statics#update
            DELETE /filters/statics/:id(.:format)      avo/dynamic_filters/statics#destroy
Any ideas on where to look for an issue? Rails version: 7.1.3.4 Avo version: 3.10.2 Using Avo Advanced license.
you need to update to rails 7.2
rails 7.1 has a bug with mounting nested engines
b
Gotcha, thanks!
Yep, that works perfectly fine.
l
nice!
thanks for the confirmation
a
It's not really feasible that we upgrade to an unreleased beta version of Rails on our production application, but we aren't experiencing these issues on our end with Avo 3.10.5 and Rails 7.1.3.4. We do have a custom navigation which we've worked around for the dashboard links, and we aren't presently using dynamic filters, so those are fine as well. Is there any way to hide this message from our admin users? Perhaps there could be a configuration option for this so we don't freak our users out with what they'll most likely misconstrue as error messages?
Otherwise I guess I can monkey patch this to hide it, but it would be nice to not have to blast our users on every single page of Avo with this
l
The dashboard links are one of the bugs. I’d monkey patch it tbh. You’ll soon update to 7.2 (when released) and we don’t want another if/else in the code base