我正在关注http://edgeguides.rubyonrails.org/plugins.html并在
第8章,我被告知要补充:
ActionController::Routing::RouteSet::Mapper.send:include,
Yaffle::Routing::MapperExtensions
为了在我的Rails应用程序中添加插件的路由...
不幸的是,在Rails 3中不推荐使用ActionController::Routing,而且我在ActionDispatch中找不到替代它的东西,
我应该怎么用呢?
提前致谢,
本
最佳答案
使用Keith Schacht code! :)
关于ruby-on-rails - 在Rails3插件中替换ActionController::Routing::RouteSet::Mapper.send,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3869851/