Created
March 9, 2011 02:30
-
-
Save ecpplus/861577 to your computer and use it in GitHub Desktop.
will_paginateで出力されるページネーションの日本語化
This file contains 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
# -*- 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