首页 > 其他 > 详细

will_paginate

时间:2015-06-30 08:53:29      阅读:126      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!