M
M
Maksik2017-04-11 19:45:07
Ruby on Rails
Maksik, 2017-04-11 19:45:07

How to organize categories in Ruby on Rails?

Guys please tell me. There is a task to make a small project such as accounting for income and expenses with the ability to add and delete them. It should also be possible to add and delete categories of expenses and income. Therefore, the question is: How best to organize the Categories themselves? Create a global category Category, and then inherit from it the categories IncomeCategory and ExpenseCategory, and then just access them through type? Or is it better? Please advise how such a project can be planned. Thanks in advance.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question