开发者

Print and will_paginate

I'm working with ruby 1.8.7 and rails 2.3.5.

I use will_paginate to display the result of a database request. and i well display 20 results per page and i have lets say 15 pages to display. Now i need to print the whole list, i found out a printing method adding开发者_运维问答 a link into my view file erb <%=link_to_function("Print this Page", "javascript:print()")%> But it only print the 20 results available on the screen. Is there a method to print the 300 results in one clic

Thanks for all advises and ideas


The print link should send to a non paginated print page with the 300 results and then print from here, you try to print from a view which only has access to the paginated object.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜