From e25654b56640136d7efa54f1cad7b92b875012c5 Mon Sep 17 00:00:00 2001 From: Benjamin Randolph Date: Wed, 6 Nov 2024 09:28:58 -0700 Subject: [PATCH] Turbo stream federal tax index. --- .../federal_tax_brackets_controller.rb | 4 ++++ app/views/components/_toolbar.html.erb | 12 +++++----- .../federal_tax_brackets/_index.html.erb | 24 ++++++++++--------- app/views/federal_tax_brackets/index.html.erb | 4 +--- .../index.turbo_stream.erb | 1 + 5 files changed, 25 insertions(+), 20 deletions(-) create mode 100644 app/views/federal_tax_brackets/index.turbo_stream.erb diff --git a/app/controllers/federal_tax_brackets_controller.rb b/app/controllers/federal_tax_brackets_controller.rb index 88426d5..013b796 100644 --- a/app/controllers/federal_tax_brackets_controller.rb +++ b/app/controllers/federal_tax_brackets_controller.rb @@ -4,6 +4,10 @@ class FederalTaxBracketsController < ApplicationController # GET /federal_tax_brackets or /federal_tax_brackets.json def index @federal_tax_brackets = FederalTaxBracket.order_by_range + respond_to do |format| + format.turbo_stream + format.html + end end # GET /federal_tax_brackets/1 or /federal_tax_brackets/1.json diff --git a/app/views/components/_toolbar.html.erb b/app/views/components/_toolbar.html.erb index c28240c..01c0b14 100644 --- a/app/views/components/_toolbar.html.erb +++ b/app/views/components/_toolbar.html.erb @@ -1,17 +1,17 @@ -