# Re: How to apply OR condition in model.find?

**URL:** <https://www.ruby-forum.com/t/re-how-to-apply-or-condition-in-model-find/194728>\
**Category:** Rails\
**Created:** [September 9, 2010, 5:07pm UTC](https://www.ruby-forum.com/t/re-how-to-apply-or-condition-in-model-find/194728 "2010-09-09T17:07:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fred\_batschelet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/b4bc9f/32.png) [@fred\_batschelet](https://www.ruby-forum.com/u/fred_batschelet)\
**Post date:** [September 9, 2010, 5:07pm UTC](https://www.ruby-forum.com/t/re-how-to-apply-or-condition-in-model-find/194728/1 "2010-09-09T17:07:28Z")

</div>

Hi,

[find (ActiveRecord::Base) - APIdock](http://apidock.com/rails/v2.3.8/ActiveRecord/Base/find/class) shows:

mihserf - July 22, 20083 thanks  
:conditions examples

:conditions =\> {:login =\> login, :password =\> password}

:conditions =\> [â€˜subject LIKE :foo OR body LIKE :fooâ€™, {:foo =\> â€˜woahâ€™}]

(from the book “The Rails Way”)
