mbulat/plutus ? reverse-engineered prompt
Reverse engineered prompt
Build me a Ruby on Rails engine for double entry accounting that I can drop into an existing app.
I want it to let me create the main account types, like assets, liabilities, equity, revenue, and expenses, then record journal entries with matching debits and credits so the books always stay in balance. It should calculate balances correctly using decimal math, not floats, and support a normal ledger style view of each account.
Please include the install flow through migrations, basic seed examples for setting up a book of accounts, and the core models and associations needed to save entries with multiple lines. It would be great if entries can optionally be linked to my own records like invoices or receipts too.
Make the README and examples clear enough that someone with only light Rails experience can use it. If anything is unclear from the existing docs, look up current Rails and gem best practices online and keep the implementation compatible with modern Rails.
Are you gonna build this?
make sure you review the code using coderabbit