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—
<% for software_ci in @software_cis %>
code–
<% for hardware_ci in @hardware_cis %>
I treid like
@hardware_cis=HardwareCi.paginate
per_page=>5,:page=>params[:hardware_page]
@software_cis=SoftwareCi.paginate
per_page=>5,:page=>params[:software_page]
@document_cis=DocumentCi.paginate
per_page=>5,:page=>params[:document_page]
But this is not the way I think .Here i have three seperate pagination
in view.That is not i want.How can I solve this?Please help