爲什麼鐵軌正在像什麼時候rails使用點來代替反斜槓?
/notification_templates/duplicate_me.1
路徑它應該是
/notification_templates/duplicate_me/1
我的路線是
resources :notification_templates do
collection do
get :blast_send
patch :deactivate
patch :activate
get :get_list
post :duplicate_me
end
end
和我的鏈接是 <%= link_to "Duplicate", duplicate_me_notification_templates_path(template), method: :post, class: "btn btn-primary" %>
'/'=斜槓,'''''=反斜槓 – Stefan
耶謝謝指出 – Prem