Re: Searching through HABTM

Phlip
Fri, 30 May 2008 14:05:02 -0000

> The problem I have is that f.find_all_by_ doesn''t work.  I have
tried
> find_all_by_genre and I get:
> undefined method `find_all_by_genre''
> I tried find_all_by_genre("GENRE", :include => :genres and no
dice.

>> If anotherthing is in another table, you will need to :include =>
>> :anotherthings, and you can''t use an automatic method named
_and_.

Read it again.