이 내 애플 리케이션에 forem
를 통합하고있어 말, 내 routes.rb
이 보인다 : 레일 : 액세스 다른 경로 도우미가 장착 된 클래스로 라우팅 후
# items
resources :items, only: [:index, :show]
# forem
mount Forem::Engine, :at => '/forums'
그리고 내 기본 레이아웃 layout/Application.erb.html
에서
link_to 'items', items_path
가와, /forums
페이지에서, 그것은 발생합니다 :
undefined local variable or method `items_path'
그래서
, 어떻게 사람을 신경 쓰지