Best Practices for Managing Pricing / Discount Business Rules on the Rails
I am new to Rails and I have never developed a large application. My friend and I are developing two separate applications, and we figured out that we have a need for a way to generally manage pricing / discount rules.
Scenario: Let's say you have a conference registration application, and depending on who is using the application, they can choose different pricing plans. $ 50 1 participant $ 40> 5 people Exhibitor receives 3 free participants and $ 30 for each additional
Instead of baking into the specifics of these rules, it would be nice to distract him in some way so that the rules can change over time and with the help of the conference.
What are the best practices for handling this? Are there Rails plugins? We both searched but haven't found a solution yet.
source to share
I also don't know about an existing plugin to do this, but since you have at least two applications that need this, don't you try to make it a rails engine ?
That way, you and your friend can double your efforts and get something you can discover and show and improve through community feedback.
source to share