From c9ceabc27d7e26036de0b2f002978d33b1e64718 Mon Sep 17 00:00:00 2001 From: Ken Johnson Date: Tue, 9 Dec 2025 14:48:12 +0000 Subject: [PATCH] Fix DataTables column configuration error on pay page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed "Requested unknown parameter '1' for row 0, column 1" error by adding explicit column definitions to the DataTable initialization. The issue occurred because DataTables was initialized without column definitions, but data was being added as arrays. DataTables needs explicit column configuration to properly map array data to columns. Changes: - Added "columns" configuration to DataTable initialization - Defined all 4 columns with proper titles - Set "orderable: false" for Actions column This fixes the popup error that appeared when visiting /users/1/pay 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/views/pay/index.html.erb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/views/pay/index.html.erb b/app/views/pay/index.html.erb index 55ec624..895f1c3 100644 --- a/app/views/pay/index.html.erb +++ b/app/views/pay/index.html.erb @@ -207,7 +207,13 @@ function createDataTable(){ }, "autoWidth": false, "searching": true, - "ordering": true + "ordering": true, + "columns": [ + { "title": "Account Number" }, + { "title": "Routing Number" }, + { "title": "Deposit %" }, + { "title": "Actions", "orderable": false } + ] }); };