From 05ca798f397bda525ad33e88f971bf4853e0f85f Mon Sep 17 00:00:00 2001 From: saint Date: Sat, 7 Sep 2024 01:54:00 +1000 Subject: [PATCH] v0.7 Huge re-write... hoping it may work... added debug output --- plugin.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin.rb b/plugin.rb index 7cc7c12..1c5082d 100644 --- a/plugin.rb +++ b/plugin.rb @@ -25,6 +25,10 @@ after_initialize do # Match URLs that include a post_id at the end or query parameter # Main action triggered when the route is matched. def index + Rails.logger.warn "[DEBUG] Reached the index action" + + # Log all incoming parameters to see what's being passed + Rails.logger.warn "[DEBUG] Params: #{params.inspect}" post_id = extract_post_id_from_request if post_id