Can I do this with Avo? #1656
adrianthedev
started this conversation in
General
Replies: 1 comment 2 replies
-
# controllers inherit Avo's application controller
class Avo::CatsController < Avo::ApplicationController
end
# Declare the routes in your routes.rb file within Avo's scope
Rails.application.routes.draw do
# your other routes
mount Avo::Engine, at: Avo.configuration.root_path
end
# here👇
if defined? ::Avo
Avo::Engine.routes.draw do
resources :cats
end
end
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Text taken from here.
Hey guys! Could you comment on how they solved some problems that it was not possible to solve with all the facilities that Avo offers, for example:
Beta Was this translation helpful? Give feedback.
All reactions