This is great, but when I try to use it in my view, it get HTML-escaped output. Clearly I'm doing something wrong...is this meant to be used only in the controller?
<%= Article.page.pager.to_html('/articles') %> <ul class="pager"><li class="page-1 active"><a href="/articles?page=1">1</a></li> <li class="page-2"><a href="/articles?page=2">2</a></li> & lt;li class="page-3"><a href="/articles?page=3">3</a></li> <li class="page-4"><a href="/articles?page=4">4</a></li> & lt;li class="page-5"><a href="/articles?page=5">5</a></li> <li class="page-6"><a href="/articles?page=6">6</a></li> & lt;li class="page-7"><a href="/articles?page=7">7</a></li> <li class="more">...</li> & lt;li class="next jump"><a href="/articles?page=2">Next</a></li> & lt;li class="last jump"><a href="/articles?page=3387">Last</a></li> </ul> -- Mark A. Richman, MBA http://www.markrichman.com tel: (954) 234-9049 skype: mark_richman On Nov 15, 2010, at 3:57 PM, Piotr Solnica wrote: > I believe will_paginate works only with ActiveRecord. You can use dm- > pager: https://github.com/visionmedia/dm-pagination > > Cheers, > > # solnic > > On Nov 15, 9:04 pm, Mark Richman <markarich...@gmail.com> wrote: >> Okay I'm sure someone know how to do this. For now, I'm getting >> "undefined method `paginate'". I added gem "will_paginate", "~> >> 3.0.pre2" to my Gemfile and ran bundle install already. > > -- > You received this message because you are subscribed to the Google Groups > "DataMapper" group. > To post to this group, send email to datamap...@googlegroups.com. > To unsubscribe from this group, send email to > datamapper+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/datamapper?hl=en. > -- You received this message because you are subscribed to the Google Groups "DataMapper" group. To post to this group, send email to datamap...@googlegroups.com. To unsubscribe from this group, send email to datamapper+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/datamapper?hl=en.