This domain may be for sale!
will_paginateはページ番号を自動で出してくれるヘルパーがあって、 <%= will_paginate @users %> これをviewに書くだけで、ページのリンクを出力してくれます。 でも、ページ遷移をajaxでやりたい場合はこのページのリンクも link_to_remoteでやる必要があります。 そこで、helperに以下を書いておきます。 class RemoteLinkRenderer < WillPaginate::LinkRenderer def page_link_or_span(page, span_class, text = nil) text ||= page.to_s classnames = Array[*span_class] if page and page != current_page @template.link_to_remote text,
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く