如何获取命名路由的路径助手?
路线.rb
match 'report/monitor_id/:monitor_id/week_ending_date/:week_ending_date' => 'report#index'
如何获取命名路由的路径助手?当我做 rake 路线时,前面什么都没有
/report/monitor_id/:monitor_id/week_ending_date/:week_ending_date(.:format) report#index
有没有办法获得 report_monitor_id_week_ending_date_path(monitor_id, week_ending_date)?