Forum: Rails Engines development Model. Find method doubt

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
sarala (Guest)
on 2006-04-24 10:23
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
Manuel H. (Guest)
on 2006-04-24 12:08
(Received via mailing list)
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
This topic is locked and can not be replied to.