Created
May 29, 2009 09:37
-
-
Save mikezter/119876 to your computer and use it in GitHub Desktop.
AJAX link renderer for WillPaginate
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module WillPaginate | |
| class RemoteLinkRenderer < LinkRenderer | |
| def page_link(page, text, attributes = {}) | |
| @template.link_to_remote( text, {:url => url_for(page), :method => :get}, attributes) | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment