0
自定義路徑
所以在這裏,我有我的路線軌道上關注
concern :search do
scope '/search' do
get '/', to: 'users#search'
get '/schedule/:id', to: 'schedules#user'
end
end
concerns :search
scope '/dashboard' do
concerns :search
end
的問題是導軌沒有給我路徑幫手。基於我稱之爲的方式,我如何爲自己的擔憂找到不同的途徑。我想有這樣的事情
search_path
search_schedule_path
dashboard_search_path
dashboard_search_schedule_path