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) 以外にも以下のように書ける
       1     options = {
       2       :page => params[:page],
       3       :per_page => 10,
       4       :order => "id",
       5     }
       6     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 Png takiuchi on Fri 26 Sep 2008 at 18:48

svn 時代

% svn st
% svn co ...

git に乗り換えた現在

% git status
% git checkout ...

status まで我慢我慢と言ってきたのにすまないが、 checkout はもう我慢できん! この田岡茂一、そうそう気の長い・・・とかそういうの。

alias 設定

そんな田岡さんにお薦めしたいのがこちら、 設定ファイル(.git/config or ~/.gitconfig)に

[alias] 
  st = status
  ci = commit
  co = checkout

こんな風に alias 定義しておくだけで

% git st
% git ci
% git co ...

くぅ〜ん♪

posted by Png maiha on Fri 26 Sep 2008 at 10:09
Contents
Shipped PaginationScope-0.0.6, Thanks to Maiha.
優しいgitの育て方 : alias
Comments
瀧内元気: MacOS版は以下にあります * [genki/ViMouse](https://githu... '23-1
KingofSmack: Here also good reads for this mobile applicatio... '14-5
Spencer: You don't have to re-compile it, this version w... '14-4
staiano: Any chance we can get a recompile for 10.9? '14-1
dsjf: https://gist.github.com/6bf1bf2c3cbb5eb6e7a7 これ... '13-1
Services from s21g
twpro(ツイプロ)
Twitterプロフィールを快適検索
地価2009
土地の値段を調べてみよう
MyRestaurant
自分だけのレストラン手帳
Formula
ブログに数式を埋め込める数式コミュニティ