Hi,
Thanx for the sugestion regarding the view of the pagination, but the
code is not available in the site,
http://www.smashingmagazine.com/2007/11/16/pagination-gallery-examples-and-good-practices/

I have written the code for the First and Last links in the
collection.rb file as,

 def first(*args)
        if args.first.kind_of?(Integer) || (@found &&
!args.first.kind_of?(Hash))
          proxy_found.first(*args)
        else
          find(:first, *args)
        end
      end

def last(*args)
        if args.first.kind_of?(Integer) || (@found &&
!args.first.kind_of?(Hash))
          proxy_found.last(*args)
        else
          find(:last, *args)
        end
      end

but I can't find the place where they have to be called in the
will_paginate method in the view_helpers.rb file.

Moreover, I have commented out the two methods def visible_page_numbers
and def visible_page_numbers in the view_helpers.rb file but it has no
effect in the hide the display of the numbers 1 2 3 4....8 9 10.
how to hide the display of the numbers 1 2 3 4....8 9 10?

Thanx in advance!
-- 
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to