v0.7 Huge re-write... hoping it may work... added debug output

This commit is contained in:
David Sainty 2024-09-07 01:54:00 +10:00
parent f1d626248c
commit 05ca798f39

View File

@ -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