I am working on extracting some of the functionality of one of my apps into an Engine. It seems that the routes in your app are generated and then the routes for the engine. The end result is that my engine routes are considered low priority and my app routes are eating up all the requests before they ever get to the engine routes. Is there way for me to control the priority of my engine routes?
问问题
1618 次
1 回答
0
根据这个讨论: http ://groups.google.com/group/blacklight-development/browse_thread/thread/a22ee4636a70b485
它曾经是相反的。
您可以通过深入了解他们在修复它时所做的更改来弄清楚如何扭转它。
具体来说,这个有一个 hack,它通过加载 Routing::RouteSet 类 http://robots.thoughtbot.com/post/159805560/tips-for-writing-your-own-rails中的类来用应用程序路由覆盖插件路由-引擎
显然这是较旧的铁轨 - 但我认为您可能会根据自己的需求获得一些灵感:)
于 2011-06-16T16:20:00.380 回答