Listing 'rake routes' for a mountable Rails 3.1 engine

前端 未结 6 1811
悲&欢浪女
悲&欢浪女 2020-12-14 17:38

I\'m working on a mountable engine for use with Rails 3.1, and I want to list the engine\'s routes.

I created the engine using:

$ rails plugin new ra         


        
6条回答
  •  离开以前
    2020-12-14 18:14

    In rails 3.2X If you are in you "host_app" and have mounted a engine you could probably list the routes by executing (should work out of the box):

    bundle exec rake engine_name:routes
    

提交回复
热议问题