paginating 3 arrays of 3 differnet model

Hi    I have there arrays i get like below in controller @hardware_cis=HardwareCi.find_where(:all) @software_cis=SoftwareCi.find_where(:all) @document_cis= documentCi.find_where(:all) The above I have to rearrange to get the pagination      The above as a whole i have to paginate .For example @hardware_cis may contain some 10 items @software_cis may contain 6 items and the other some 12 items..And i have to paginate total 15 items per page like 5 from each..And in the view I am iterating through each three like

<% for document_ci in @document_cis %> code---