3 models, joining and nested queries

Hey,
Test this code.
Call

Host.available(start_date,end_date)

hope it will help you.

Attachments:
http://www.ruby-forum.com/attachment/8183/testcode.tar.gz

Pardeep Dhingra wrote in post #1099533:

Hey,
Test this code.
Call

Host.available(start_date,end_date)

hope it will help you.

But we search with number of persons.