Skip to content

Commit

Permalink
Route to index pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
neb417 committed Nov 7, 2024
1 parent 36aa8ad commit 110181b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions app/controllers/incomes_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ class IncomesController < ApplicationController
# GET /incomes or /incomes.json
def index
@incomes = Income.all

respond_to do |format|
format.html { render :index }
format.json { render json: @incomes }
end
end

# GET /incomes/1 or /incomes/1.json
Expand Down
4 changes: 2 additions & 2 deletions app/views/components/_toolbar.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
<%= link_to "Federal Tax Brackets", federal_tax_brackets_path, data: { turbo_stream: true }, class: active_tab == :federal_tax_brackets ? "active-toolbar-tab" : "inactive-toolbar-tab" %>
</li>
<li class="mx-auto">
<%= link_to "Incomes", incomes_path, data: { turbo_stream: false }, class: active_tab == :incomes ? "active-toolbar-tab" : "inactive-toolbar-tab" %>
<%= link_to "Incomes", incomes_path, data: { turbo: false }, class: active_tab == :incomes ? "active-toolbar-tab" : "inactive-toolbar-tab" %>
</li>
<li class="mx-auto">
<%= link_to "Fixed Expenses", fixed_expenses_path, data: { turbo_stream: false }, class: active_tab == :fixed_expenses ? "active-toolbar-tab" : "inactive-toolbar-tab" %>
<%= link_to "Fixed Expenses", fixed_expenses_path, data: { turbo: false }, class: active_tab == :fixed_expenses ? "active-toolbar-tab" : "inactive-toolbar-tab" %>
</li>
</ul>
<% end %>

0 comments on commit 110181b

Please sign in to comment.