Hello, I’m fairly new to Rails and I’m getting ready to build the app that got me to learn Rails in the first place.
I’m building a budget app. Every month has a budget which has many expenses. It’d be pretty similar to spreadsheet tabs in something like Numbers or Excel. My question is mostly related to the proper modeling of the month and expense classes.
I suspect I could create a
Month model which has 1
Budget. Would that be a good approach? The month and budget should be created automatically every month and I’m not quite sure how to pull something like that off. So, once it’s december, a new budget is created for that month. Also, any expenses that weren’t paid off the month before (like credit cards) would make their way to the new budget.
That’s what I’m most struggling with. I’m not quite able to visualize a solution to pull something like that off. I imagine there’s quite a bit of unknowns that will come up, but I was wondering if anyone had any experience with something similar? Could someone point me in the right direction? Do you see any gotchas that stick out to you?