I have a question about query on Rails.
I have my models defined as shown below:

- Person
has_many :autors, :dependent => :destroy
has_many :accused, :dependent => :destroy

- Reus
belongs_to :person
belongs_to :proceeding

- Autores
belongs_to :person
belongs_to :proceeding

- Proceeding
has_many :accused, :dependent => :destroy
has_many :autors, :dependent => :destroy
has_many :persons, :through => :autors, :as => :person_autor
has_many :persons, :through => :accused, :as => :person_accused


The question is: How do i filter out the name of accused and the autor in
the same query.

PS: Sorry my english, i'm not write in english a long time.

Thanks.

Att
 Vanildo Prates

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to