<ul><%= pagination_links(@post_pages) %></ul> that become <ul> 1 <a href="/?page=2">2</a> <a href="/?page=3">3</a> </ul> but I want it plus <li> element,become <ul> <li>1</li> <li><a href="/?page=2">2</a></li> <li><a href="/?page=3">3</a></li> </ul> how should I do? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Try using will_paginate instead. (A lot cleaner and nicer to work with) http://railslodge.com/plugins/103-will-paginate Zhenning Guan wrote:> <ul><%= pagination_links(@post_pages) %></ul> > > that become > > <ul> > 1 > <a href="/?page=2">2</a> > <a href="/?page=3">3</a> > </ul> > > but I want it plus <li> element,become > <ul> > <li>1</li> > <li><a href="/?page=2">2</a></li> > <li><a href="/?page=3">3</a></li> > </ul> > > how should I do?-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---