Skip to content

Add Avo engine routes path to the regular routes.rb file on install #2029

Open
@adrianthedev

Description

@adrianthedev

In order to nto have conflicts in how some link helpers work, we can add this snippet to the parent app on install so users know to use it.

if defined? ::Avo
  Avo::Engine.routes.draw do
    scope :resources do
      get "courses/cities", to: "courses#cities"
      get "users/get_users", to: "users#get_users"
    end
  end
end

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions