#228 open

add pagination info to array.to_xml ?

Reported by ycheng | June 3rd, 2008 @ 03:18 PM | in will_paginate v3.0 ("agnostic")

as paginate return array when render in xml, the pagination information will no be there.

I add an to_xml function into will_paginate/lib/will_paginate/collection.rb and modify activesupport-2.1.0/lib/active_support/core_ext/array/conversions.rb and then the generated xml contain pagination attributes.

the patch was on old version of will_paginate. total_pages is not there but should be extremely easy to add.

I'll upload my patch soon.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Everyone's favorite Ruby library for pagination of practically anything!

People watching this ticket