avo-hq / avo

Build Ruby on Rails apps 10x faster
https://avohq.io
Other
1.47k stars 230 forks source link

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

Open adrianthedev opened 9 months ago

adrianthedev commented 9 months ago

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
github-actions[bot] commented 9 months ago

This issue has been marked as stale because there was no activity for the past 15 days.