Skip to content

Instantly share code, notes, and snippets.

@ecpplus
Created March 9, 2011 02:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ecpplus/861577 to your computer and use it in GitHub Desktop.
Save ecpplus/861577 to your computer and use it in GitHub Desktop.
will_paginateで出力されるページネーションの日本語化
# -*- coding:utf-8 -*-
# will_paginateで出力されるページネーションの日本語化
WillPaginate::ViewHelpers.pagination_options = {
:class => 'pagination',
:previous_label => '«前へ',
:next_label => '次へ»',
:inner_window => 4, # links around the current page
:outer_window => 1, # links around beginning and end
:separator => ' ', # single space is friendly to spiders and non-graphic browsers
:param_name => :page,
:params => nil,
:renderer => 'WillPaginate::ViewHelpers::LinkRenderer',
:page_links => true,
:container => true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment