Named routes in mounted rails engine

前端 未结 3 1012
青春惊慌失措
青春惊慌失措 2020-12-24 12:12

I\'m making a small rails engine which I mount like this:

mount BasicApp::Engine => \"/app\"

Using this answer I have verified that all

3条回答
  •  长情又很酷
    2020-12-24 12:47

    use the below in you app to access the engine routes

    MyApp::Engine.routes.url_helpers.new_post_path
    

提交回复
热议问题