From 5644fffbc3c58e6dd7e3c4103c28bad8f4c0bbc6 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Thu, 6 Aug 2026 13:30:38 +0200 Subject: Let editors set a node external homepage, gated and witnessed --- app/controllers/nodes_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/controllers') diff --git a/app/controllers/nodes_controller.rb b/app/controllers/nodes_controller.rb index 5b919b1f..22606674 100644 --- a/app/controllers/nodes_controller.rb +++ b/app/controllers/nodes_controller.rb @@ -116,7 +116,8 @@ class NodesController < ApplicationController rescue LockedByAnotherUser => e flash[:error] = e.message redirect_to node_path(@node) - rescue ActiveRecord::RecordInvalid + rescue ActiveRecord::RecordInvalid => e + flash.now[:error] = e.record.errors.full_messages.to_sentence @page = @node.autosave || @node.draft || @node.head render :action => :edit end -- cgit v1.3