Fix paginate.
has_key -> has_key?
Iplement find()