<%= form_for(widget, {action: widgetPath({ widget_id: widget.ID }), method: "PUT"}) { %> <%= partial("widgets/form.html") %> Cancel <% } %>