nested find

hi,
i want to do it with activerecords: parent.children.my_method.
in "my_method" i have a find_by_sql and need to know "parent"
attributes. how do i get them?

regards

self.parent

thanks pratik (i love your blog).

I think i didn't explain it good enough: parent object can be whatever
class and i want to accessed parent object from children method.