undefined method empty? when find first invoked on db

As a named_scope, compiled_this_week will return a collection, even if it finds only one record matching its criteria. On a collection, #empty? will work. When you call #first or #find(:first) on the collection returned by compiled_this_week, you get the first record. #empty? is undefined on that record.



Ah that makes sense now - thanks for the clarification on that Craig!