rough-student-26326
12/04/2025, 2:19 AMhashids (1.0.6) lib/hashids.rb:29:in `Integer'
hashids (1.0.6) lib/hashids.rb:29:in `block in encode'
hashids (1.0.6) lib/hashids.rb:29:in `map!'
hashids (1.0.6) lib/hashids.rb:29:in `encode'
prefixed_ids (1.6.1) lib/prefixed_ids/prefix_id.rb:14:in `encode'
prefixed_ids (1.6.1) lib/prefixed_ids.rb:123:in `to_param'
avo-pro (3.27.0) app/components/avo/pro/global_search_component.rb:17:in `extra_params'
avo-pro (3.27.0) app/components/avo/pro/global_search_component.html.erb:5:in `call'
I believe the error is in Avo::Pro::GlobalSearchComponent#extra_params - it should be checking for @resource.record.blank? instead of @resource.blank?miniature-optician-85831
12/04/2025, 2:19 AMrough-student-26326
12/04/2025, 3:25 AMreturn if @resource&.record.blank? || @resource.record.new_record?loud-jewelry-99127
12/04/2025, 10:06 AMavo-pro since the error back-trace points to it. However the root cause of the issue is the [prefixed_ids](https://github.com/excid3/prefixed_ids) gem (on versions lower than 1.7.1) which crashes when to_param is called on non persisted records.
Now the good news. I opened [this PR](https://github.com/excid3/prefixed_ids/pull/69) on the prefixed_ids gem on Jul 1 2024 to fix this exact issue and it was merged and released on the same day! This bug is fixed starting from prefixed_ids version 1.7.1.
I would revert the monkey patch and run bundle update prefixed_ids instead. That will fix the issue you are facing.rough-student-26326
12/04/2025, 1:21 PM