Dynamic attribute-based finders

Mark Beattie
2005-11-04T03:18:59Z

In trying to discover how I might go about filtering records by attributes in
their related tables, I''ve found myself doing the hunt for Rails
documentation again. "dynamic finders" would seem to be what
I''m looking for.

I was hot on the trail behind this posting:

http://wrath.rubyonrails.org/pipermail/rails/2005-January/001590.html

where we are directed to this page in the documentation:

http://ar.rubyonrails.com/classes/ActiveRecord/Base.html

and told to look under "Dynamic attribute-based finders".

Which is not mentioned. At all. Can anyone point me in the right direction?

Maybe there''s a better way to go about it. Basically, with 2 tables
sharing a
habtm relationship, I''d like to find all records in one table, which
have a
relationship to a particular record in the other. The dynamic finders would
seem to only be able to work on columns in a single table.

cheers

Mark Beattie
Easy Schedule Management