# Model. Find method doubt

**URL:** <https://www.ruby-forum.com/t/model-find-method-doubt/58627>\
**Category:** Engines Development\
**Created:** [April 24, 2006, 8:23am UTC](https://www.ruby-forum.com/t/model-find-method-doubt/58627 "2006-04-24T08:23:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sarala](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/7ba0ec/32.png) [@sarala](https://www.ruby-forum.com/u/sarala)\
**Post date:** [April 24, 2006, 8:23am UTC](https://www.ruby-forum.com/t/model-find-method-doubt/58627/1 "2006-04-24T08:23:55Z")

</div>

Hi Ruby Group!

I am new to ROR

I ahave one doubt on Active record methods

find method of the model class(i.e subclass of Active Record).

when the find method get or morecord based oon the condtion no problem

i.e  
id=1  
Product.find(id)

if this method get s the no problem.

if the product table have no recodrs on the condtion.

I am getting the error how can i solve this problem.

how can i handele the find method if it returns null

---

<div class="post-metadata">

**Author:** ![sarala](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/7ba0ec/32.png) [@sarala](https://www.ruby-forum.com/u/sarala)\
**Post date:** [April 24, 2006, 10:08am UTC](https://www.ruby-forum.com/t/model-find-method-doubt/58627/2 "2006-04-24T10:08:00Z")

</div>

Hi Sarala.

As far as I can see this list is dedicated to developers of Engines.  
Engines is a system for writing software components.

You should rather ask your questions on the list dedicated to Rails  
development: removed\_email\_address@domain.invalid

Regards,

Manuel
