rails文档中的engine使用问题

背景:最近想把项目实现模块化,于是看到了rails的engine这一章节,照着文档(http://guides.ruby-china.org/engines.html)走了一半,出现问题就再也走不下去了问题:走到3.2节最后一部分,对post添加评论后出现了route错误:No route matches {:action=>”show”, :controller=>”blorgh/posts”}路由配置如下:

resources :posts resources :posts do resources :comments end root :to => “posts#index”项目源码已经推送到github: git@github.com:rubylab/blorgh.git,还望各位大哥,大神们不吝指教,@Rei @jasl。在此先谢过诸位!

rails文档中的engine使用问题

相关文章:

你感兴趣的文章:

标签云: