是否有一种方法可以自定义在视图中会在页面上输出什么_paginate输出?

时间:2020-12-24 22:59:51

In my view..

在我看来. .

<%= will_paginate @received_messages %>

renders..

呈现. .

← Previous 1 2 Next →

on the page. Is there a way to pass some options to that to customize the output? Like just page numbers or just next/previous page links (if there's any next/previous page) etc. Any idea?

在页面上。是否有一种方法可以将一些选项传递给它以定制输出?就像只是页码或前一页链接(如果有下一页/前一页)等等。有什么想法吗?

1 个解决方案

#1


4  

This can help you: Module: WillPaginate::ViewHelpers

这可以帮助您:模块:WillPaginate: ViewHelpers

#1


4  

This can help you: Module: WillPaginate::ViewHelpers

这可以帮助您:模块:WillPaginate: ViewHelpers