routes.rb
に置いて
scope module: :contents do get 'article/:id', :to"article#detail" end
このような感じでscope moduleによって参照するcontrollerのディレクトリが変更された場合。
contents/article_controller.rbで
def detail end
このようにdefaultのviewを指定した場合、参照先は
contents/article/detail.html.erb
か
article/detail.html.erb
のどちらなのでしょうか??
まとめると
scope moduleにおけるcontrollerのdefaultのview参照directoryってcontrollerのようにcontentの下なのか、それともscopeする前と変わらないのかどちらなのでしょうか??
あなたの回答
tips
プレビュー