https://avo.cool logo
Hi there. Wondering if someone could help her...
# resources
p
Hi there. Wondering if someone could help here? I'm getting the following error:
Copy code
NoMethodError 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:
Copy code
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 },
    }
  }
m
Thread automatically created by rctneil in #1141725701549072486
l
What version of Avo are you using?
p
3.25.0
l
Let's keep the conversasion in this thread please
Could you share your routes?
The avo related part only
p
Yes, my mistake. I fixed it.
l
how are you mounting avo engine on your routes basically
p
mount Avo::Engine => '/admin', as: 'avo'
and further down:
Copy code
if defined? ::Avo
  Avo::Engine.routes.draw do
    get "hierarchy", to: "tools#hierarchy", as: :hierarchy
    get "welcome", to: "tools#welcome", as: :welcome
  end
end
l
Check this breaking change update https://docs.avohq.io/3.0/upgrade.html#Avo's%20mounting%20point%20update
p
Ah fantastic! Thanks @loud-jewelry-99127 !