Use record lookup

This commit is contained in:
David Heinemeier Hansson
2025-04-13 20:30:03 +02:00
parent d9a9690137
commit 34232c0e31
+1 -1
View File
@@ -24,7 +24,7 @@ class WorkflowsController < ApplicationController
def update
@workflow.update! workflow_params
redirect_to workflow_path(@workflow)
redirect_to @workflow
end
def destroy