# Rule engine creation?

**URL:** <https://www.ruby-forum.com/t/rule-engine-creation/136794>\
**Category:** Ruby\
**Created:** [May 6, 2008, 2:17pm UTC](https://www.ruby-forum.com/t/rule-engine-creation/136794 "2008-05-06T14:17:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![varunkumargoel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/ed8c4c/32.png) [@varunkumargoel](https://www.ruby-forum.com/u/varunkumargoel)\
**Post date:** [May 6, 2008, 2:17pm UTC](https://www.ruby-forum.com/t/rule-engine-creation/136794/1 "2008-05-06T14:17:16Z")

</div>

Hi,  
I wanna make one dynamic rule engine for that suppose i create one  
rule designation equals Project Leader.

Now my question is that now how i will validate this rule and how i will  
check condition for this in controller.

I can check something like designation.eql?(“Project Leader”) but that  
rule will be in plain English as i said above.

So,please tell me how can i do this.I hope all of you got my  
problem…

Thanks  
Varun

---

<div class="post-metadata">

**Author:** ![varunkumargoel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/ed8c4c/32.png) [@varunkumargoel](https://www.ruby-forum.com/u/varunkumargoel)\
**Post date:** [May 6, 2008, 2:38pm UTC](https://www.ruby-forum.com/t/rule-engine-creation/136794/2 "2008-05-06T14:38:45Z")

</div>

Check out a project named Ruleby. It can help you with this.

–Jeremy

On Tue, May 6, 2008 at 8:17 AM, Varun G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> So,please tell me how can i do this.I hope all of you got my  
> problem…
> 
> ## Thanks Varun
> 
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

–  
[http://jeremymcanally.com/](http://jeremymcanally.com/)  
[http://entp.com](http://entp.com)

Read my books:  
Ruby in Practice ([Ruby in Practice](http://manning.com/mcanally/))  
My free Ruby e-book ([http://humblelittlerubybook.com/](http://humblelittlerubybook.com/))

Or, my blogs:

> **[Site not found · DreamHost](http://mrneighborly.com)**
>
> The owner of this domain has not yet uploaded their website.

[http://rubyinpractice.com](http://rubyinpractice.com)
