Say I'm integrating forem
into my apps, and my routes.rb
seems like this:
# items
resources :items, only: [:index, :show]
# forem
mount Forem::Engine, :at => '/forums'
And In my default layout layout/Application.erb.html
, there's something like:
link_to 'items', items_path
and, in /forums
pages, it occurs that:
undefined local variable or method `items_path'
so, how can I access other path helpers after routing into mounted class