I have the need to keep track of each users budget in my application.
I need to keep track of the actual dollar limit of the budget, as well
as individual line items against the budget.
I've set up two models, budget and budget line items.
The budget model currently only contains 1 field, limit, which is the
amount that the user has to spend.
The budget_line_item model has the following fields:
fields do
name :string
cost :string
total_paid :string
amount_due :string
due_date :date
timestamps
end
The two models currently have no relation, not sure which they should
have if any.
"name" is the description of the line item. I'm not sure the best way
to do currency math in Rails, so everything is a string right now.
My question becomes, how can I display this all on one page. I already
have a table-plus showing me the budget items in a ledger style
format. I would like to display the budget limit amount in an aside,
along with a number showing the total expense of all items in the
budget_line_item model, and then a number showing the difference
between those two.
I also need a way to modify the budget limit, preferably in the aside.
When I try to add an aside using the children hint for
budget_line_items, I get nothing ....
Any recommendations here?
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/hobousers?hl=en.