# Minimal Pagination Example (Rails + Ember)

**URL:** <https://discuss.emberjs.com/t/minimal-pagination-example-rails-ember/2224>\
**Category:** Uncategorized\
**Created:** [August 19, 2013, 11:21pm UTC](https://discuss.emberjs.com/t/minimal-pagination-example-rails-ember/2224 "2013-08-19T23:21:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mharris717](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/mharris717/32/14355_2.png) [@mharris717](https://discuss.emberjs.com/u/mharris717)\
**Post date:** [August 19, 2013, 11:21pm UTC](https://discuss.emberjs.com/t/minimal-pagination-example-rails-ember/2224/1 "2013-08-19T23:21:09Z")

</div>

[https://gist.github.com/mharris717/6275219](https://gist.github.com/mharris717/6275219)

Requires ActiveModelSerializers and WillPaginate.

Simple and works. Uses the “meta” functionality of AMS and Ember.

Obviously this functionality is barer than bare bones. Happy to post a full example site if people are interested.

---

<div class="post-metadata">

**Author:** ![mharris717](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/mharris717/32/14355_2.png) [@mharris717](https://discuss.emberjs.com/u/mharris717)\
**Post date:** [August 20, 2013, 1:00pm UTC](https://discuss.emberjs.com/t/minimal-pagination-example-rails-ember/2224/2 "2013-08-20T13:00:04Z")

</div>

Also happy to package this up into a gem (or other package) if people have interest, please let me know.

---

<div class="post-metadata">

**Author:** ![mharris717](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/mharris717/32/14355_2.png) [@mharris717](https://discuss.emberjs.com/u/mharris717)\
**Post date:** [August 22, 2013, 3:21pm UTC](https://discuss.emberjs.com/t/minimal-pagination-example-rails-ember/2224/3 "2013-08-22T15:21:33Z")

</div>

Created a small library, available for browser and in NPM.

[https://github.com/mharris717/ember-pagination](https://github.com/mharris717/ember-pagination)

/sorry for crosspost

---

<div class="post-metadata">

**Author:** ![ccverak](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/ccverak/32/15060_2.png) [@ccverak](https://discuss.emberjs.com/u/ccverak)\
**Post date:** [October 11, 2013, 10:59pm UTC](https://discuss.emberjs.com/t/minimal-pagination-example-rails-ember/2224/4 "2013-10-11T22:59:19Z")

</div>

@mharris717 it will be great if you add support for sorting on server side

---

<div class="post-metadata">

**Author:** ![Remon\_Amin](https://avatars.discourse-cdn.com/v4/letter/r/85e7bf/32.png) [@Remon\_Amin](https://discuss.emberjs.com/u/Remon_Amin)\
**Post date:** [March 6, 2014, 1:34pm UTC](https://discuss.emberjs.com/t/minimal-pagination-example-rails-ember/2224/5 "2014-03-06T13:34:17Z")

</div>

on current version of ember 1.4 its not working ,setting up the plugin not working but show more link working in appending data but i don’t stop ,it continue loading data even current page exceeded the total pages .
