Today, maiha, the author of the one of the most authorized books regarding rails in Japan, had sent me a patch including various improvements for the PaginationScope.
I want to say thank you for the great contribution.

And then I merged it into the master and pushed to the GitHub.

http://github.com/genki/pagination_scope/tree/master

Here is the list of improvements from Maiha.

<モデル>

  • AR.paginate の第三引数に options を渡せるように変更
  • AR.paginate の options は第一引数でも可能にした
    AR.paginate(params[:page], 10, options)
    以外にも以下のように書ける
    ruby>>
    options = {
    :page => params[:page],
    :per_page => 10,
    :order => "id",
    }
    AR.paginate(options)
    <<--

<ヘルパ>

  • Helper#paginate のオプション名を変更 (newer->prev, older->next)
    昇順、降順によって newer/older が逆の意味になってわかり辛かったので
  • Helper#paginate の各要素にクラス名を付与
    will_paginate のスタイルシートがそのまま使えるように合わせた
  • Helper#paginate のリンクに rel 属性を追加
    AutoPagerize 対応
  • Helper#paginate のオプションに truncate を追加
    省略時の '...' を設定可能にした

Thanks again!

posted by takiuchi takiuchi on Fri 26 Sep 2008 at 18:46 with 0 comments
Contents rssrss
Google +1 button causes trouble with Amazon ELB
How to build collada-dom on Linux
cmakeをhomeの下にインストールする手順のメモ
原子レベルのレンダリングに関するメモ
gluLookAtの等価表現
Where the Fl_Gl_Box is / Fl_Gl_Boxのありか
How to display the list of options for CMake
How to install collada-dom to MacOS X
積分方程式の分類について
Terminology of parallel computing needs recomposition
Tags
memocmakecolladaopengl3Damazonatomiccgcomputingdnselbfltkgoogleissuemacmathparallelreportthoughtsメモ
Comments rssrss
Spencer Spencer: You don't have to re-compile it, this version work... 04/08 07:15
staiano staiano: Any chance we can get a recompile for 10.9? 01/10 01:47
falsefalse falsefalse: @tiancongxin try using this one https://github.com... 02/14 08:04
tiancongxin tiancongxin: TerminalCopyOnSelect not work on OS X 'Lion' , cou... 07/21 17:21
staiano staiano: Roderick you rock for recompiling it. Thanks. 03/25 02:42
瀧内元気 瀧内元気: The merbi.st domain has been expired. So now it is... 01/03 17:25
Roderick Roderick: I've compiled the current version from github, thi... 08/24 15:57
swissarmychainsaw swissarmychainsaw: How do I get around this error message? Error Term... 08/20 20:43
Services from s21g
YOMU Web小説リーダー
小説投稿サイトの公式ページを開き、WebView表示と読み上げ向け表示を切り替えて、移動中や作業中にもWeb小説の続きを聴きやすくするiPhoneアプリです。
補助探
公開されている補助金・助成金情報を集約し、条件に合う制度を探しやすくするサービスです。
jotter.me
個人開発者のためのホスティング一体型ノートサービス
ハンドミラー
iPhone向けの手鏡アプリ
ツイプロ(twpro)
Twitterプロフィールの高速検索エンジン