0
我想要創建這樣的路由:Rails非標準資源路徑
https://example.com/appusers/1/check_for_updates
。
應該基本上是一個資源路線,這樣我可以做@appuser = Appuser.find(params[:id])
但我無法弄清楚如何列出,在我的路線文件。我試過get 'appusers/:id/check_for_updates'
但是會拋出一個錯誤。
我想要創建這樣的路由:Rails非標準資源路徑
https://example.com/appusers/1/check_for_updates
。
應該基本上是一個資源路線,這樣我可以做@appuser = Appuser.find(params[:id])
但我無法弄清楚如何列出,在我的路線文件。我試過get 'appusers/:id/check_for_updates'
但是會拋出一個錯誤。