Skip to content

Instantly share code, notes, and snippets.

@thbar
Created June 22, 2009 08:02
Show Gist options
  • Save thbar/133856 to your computer and use it in GitHub Desktop.
Save thbar/133856 to your computer and use it in GitHub Desktop.
module Ramaze
module Helper
module WillPaginateForRamaze
include ActionView::Helpers::UrlHelper
include ActionView::Helpers::TagHelper
include WillPaginate::ViewHelpers
def url_for(args)
url = case args
when Hash;
Rewriter.to_canonical_url(args)
when String;
args
end
end
def params
request.params
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment