purple-park-97233
10/09/2025, 9:30 AMNoMethodError in Avo::Venues#index
Showing /home/vscode/.local/share/mise/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/avo-3.25.0/app/views/avo/base/index.html.erb where line #2 raised:
undefined method 'avo_pro' for an instance of #<Class:0x0000ffff7206cee0>
All I added was the following in order to enable record reordering:
self.ordering = {
visible_on: :index,
actions: {
higher: -> { record.move_higher },
lower: -> { record.move_lower },
to_top: -> { record.move_to_top },
to_bottom: -> { record.move_to_bottom },
}
}miniature-optician-85831
10/09/2025, 9:30 AMloud-jewelry-99127
10/09/2025, 9:31 AMpurple-park-97233
10/09/2025, 9:32 AMloud-jewelry-99127
10/09/2025, 9:32 AMloud-jewelry-99127
10/09/2025, 9:32 AMloud-jewelry-99127
10/09/2025, 9:32 AMpurple-park-97233
10/09/2025, 9:32 AMloud-jewelry-99127
10/09/2025, 9:33 AMpurple-park-97233
10/09/2025, 9:33 AMmount Avo::Engine => '/admin', as: 'avo'
and further down:
if defined? ::Avo
Avo::Engine.routes.draw do
get "hierarchy", to: "tools#hierarchy", as: :hierarchy
get "welcome", to: "tools#welcome", as: :welcome
end
endloud-jewelry-99127
10/09/2025, 9:34 AMloud-jewelry-99127
10/09/2025, 9:35 AMpurple-park-97233
10/09/2025, 9:36 AM