From bdfda776039d04cad9cb448454e764f7dc4d2dbf Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Fri, 16 Aug 2024 21:51:29 -0400 Subject: [PATCH] Order more reasonably (#27) Reviewed-on: https://git.atomaka.com/atomaka/budget/pulls/27 --- app/controllers/credit_card_bills_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/credit_card_bills_controller.rb b/app/controllers/credit_card_bills_controller.rb index d1f027a..4dc23ab 100644 --- a/app/controllers/credit_card_bills_controller.rb +++ b/app/controllers/credit_card_bills_controller.rb @@ -3,7 +3,7 @@ class CreditCardBillsController < ApplicationController # GET /credit_card_bills or /credit_card_bills.json def index - @credit_card_bills = CreditCardBill.all + @credit_card_bills = CreditCardBill.all.order(created_at: :desc) end # GET /credit_card_bills/1 or /credit_card_bills/1.json