I have a query I'd like to put in a named_scope. I have a model Item and a model Rental. Item has_many rentals, Rental has_one item. Rental has a boolean field "active". I'd like to make a named scope that finds all the items with no active rental.
Or should I be using some kind of Item.where statement? I read about that somewhere... Mark (sorry if this is not really a hobo question). -- You received this message because you are subscribed to the Google Groups "Hobo Users" 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/hobousers?hl=en.
