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
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
On Dec 9, 2007 3:05 PM, Jean-Sébastien [email protected]
wrote:
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
–
Cheers!
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.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs