码迷,mamicode.com
首页 > 其他好文 > 详细

will_paginate

时间:2015-06-30 08:55:50      阅读:104      评论:0      收藏:0      [点我收藏+]

标签:

地址: https://github.com/mislav/will_paginate/wiki/API-documentation

 

 

page_entries_info(collection, options)

Renders a message containing number of displayed vs. total entries.

<%= page_entries_info @posts %>
#=> Displaying posts 6 - 12 of 26 in total
  • :model - a model class or string name (default: collection.first.class)
  • :html - set to false to generate plain text (default: true)

You can customize the output format using I18n.

will_paginate

标签:

原文地址:http://www.cnblogs.com/qinyan20/p/4609370.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!