# Rule Engine in Ruby

**URL:** <https://www.ruby-forum.com/t/rule-engine-in-ruby/123637>\
**Category:** Ruby\
**Created:** [December 19, 2007, 11:45am UTC](https://www.ruby-forum.com/t/rule-engine-in-ruby/123637 "2007-12-19T11:45:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![srinivasan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/90db22/32.png) [@srinivasan](https://www.ruby-forum.com/u/srinivasan)\
**Post date:** [December 19, 2007, 11:45am UTC](https://www.ruby-forum.com/t/rule-engine-in-ruby/123637/1 "2007-12-19T11:45:34Z")

</div>

Hi,

I need to use ruby rules engine in my application.I dont the purpose of  
rules engine.if possible can any of u help me in creating a sample  
application in rails.  
or sample application using rails.

Regards

Srini

---

<div class="post-metadata">

**Author:** ![srinivasan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/90db22/32.png) [@srinivasan](https://www.ruby-forum.com/u/srinivasan)\
**Post date:** [December 21, 2007, 2:22am UTC](https://www.ruby-forum.com/t/rule-engine-in-ruby/123637/2 "2007-12-21T02:22:28Z")

</div>

Hi Srini,

On Dec 19, 2007 7:45 PM, Srini Pv [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I need to use ruby rules engine in my application.I dont the purpose of  
> rules engine.if possible can any of u help me in creating a sample  
> application in rails.  
> or sample application using rails.

Seems like you already decided which Ruby rules engine you want to  
use, so you should ask for help on the forum of that project, not here  
in the general Ruby language forum.

If you “don’t [know] the purpose of rule engine”, please teach  
yourself about them,

> **[Business rule](https://en.wikipedia.org/wiki/Business_rules)**
>
> A business rule defines or constrains some aspect of a business. It may be expressed to specify an action to be taken when certain conditions are true or may be phrased so it can only resolve to either true or false. Business rules are intended to assert business structure or to control or influence the behavior of the business. Business rules describe the operations, definitions and constraints that apply to an organization. Business rules can apply to people, processes, corporate behavior a Bu...

might be a starting point, then google for “ruby rule engine example”

You should not focus on “creating a sample application in rails”, at  
first aim for a simple example you run from the command line (Ruby  
without Rails). Then, when you have a good grasp of your “rule  
engine”, think about how you can benefit of it in your classical  
(Rails?) application development.

Best regards,
