我认为一切都已正确设置,但当我试图访问dashboards_posts_path时,它将指向dashboard_path视图而不是app>views>dashboards>posts#index视图。namespace :dashboards do resources :tags resources :commentsresources :pagesend
class Dashboards
我将控制器文件命名为- client_display_dashboards_controller。因此,在路由文件中,我将路径定义为- client_display_dashboards#display_dashboards,其中display_dashboards是类下的函数。(display_dashboards)文件存在于公用文件夹中。ClientDisplayDashboardsController#display_dashboards is missing a template