Hack together a quick dashboard
Also fix bug in member calc
This commit is contained in:
parent
8a7a0cc720
commit
bebdd5e30d
4 changed files with 82 additions and 4 deletions
7
app/controllers/dashboard_controller.rb
Normal file
7
app/controllers/dashboard_controller.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
class DashboardController < ApplicationController
|
||||
def show
|
||||
@incomes = Income.includes(:member).all
|
||||
@expenses = Expense.all
|
||||
@members = Member.all
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue