我有以下三种模式:
文章
Article :: Line(文章的行)
文章::评论(评论一条线)
我想要一条
的路线 /物品/ 11 /线/ 2 /评论/新
/物品/ 11 /线/ 2 /审核/修改
我的路线.rb
resources :articles do
scope module: 'article' do
resources :lines do
resources :reviews
end
end
end
我正在尝试使用new和自动编辑form_for:
<%= form_for [ @line.article, @line, @review ] do |f| %>
但是这会产生未定义的方法`article_article_line_article_reviews_path'错误。
我做错了什么,或者这可能吗?