From: Oleg Kh Date: 2006-08-02T05:42:23+09:00 Subject: Re: find_all wierdness Daniel DeLorme wrote: > Try to use select instead of find_all. In this case I think you are > actually > triggering ActiveRecord's find_all instead of the Enumerable#find_all > that you > were expecting. book.chapters is not an array but an association object. > The > ActiveRecord version is defined as: > Project#milestones.find_all(conditions) > So in your case, you don't give any conditions as parameters and the > method just > ignores the block and returns all chapters. Sometimes Rails magic can > bite you > in the ass. > > Daniel Thank you Daniel. That was it. -- Posted via http://www.ruby-forum.com/.