Delete stuff in report view

This commit is contained in:
david 2024-11-11 01:40:04 +01:00
parent 644969c613
commit 50e853098b
16 changed files with 64 additions and 31 deletions

View file

@ -44,7 +44,7 @@ class PagesController < ApplicationController
# DELETE /pages/1
def destroy
@page.destroy!
redirect_to report_pages_url(@page.report), notice: "Page was successfully destroyed.", status: :see_other
redirect_to report_url(@page.report), notice: "Page was successfully destroyed.", status: :see_other
end
private