Active Record Query Interface
This guide covers different ways to retrieve data from the database using Active Record. By referring to this guide, you will be able to:Find records using a variety of methods and conditions
http://guides.rubyonrails.org/active_record_querying.html
Specify ...
http://b.hatena.ne.jp/entry/http://guides.rubyonrails.org/active_record_querying.html