Hatena::Grouphsj

HSJ.(中略).jp - いろいろお勉強コーナー このページをアンテナに追加 RSSフィード

2006年01月03日Action Pack Paginationまとめ

[][][][]Pageまとめ Pageまとめ - HSJ.(中略).jp - いろいろお勉強コーナー を含むブックマーク

基本的なプロパティについてはそのままなので、名前だけ列挙。

  • first?
  • first_item
  • last?
  • last_item
  • next
  • previous
  • offset

Windowとは?

ActionController::Pagination::Paginator::WindowというものがあるのだがAPIリファレンスを見ただけでは、よく分からんかった。

結局は「現在10ページ目として前後2ページずつのリンクを表示する」みたいな処理をする際に、

<% for p in @todo_item_pages.current.window.pages %>
<%= link_to "P.#{p.number}", { :page => p } %>
<% end %>

と書いておくと、

P.8 P.9 P.10 P.11 P.12 

みたいな表示をしてくれる…ようなもの。もちろんlink_toの効果でリンクもついている。

デフォルト値は前後2ページとされています。

この値の名前がpaddingとなっている。

ちなみにfirstとlastでそのwindowの前後も取得できるわけですが。

vfkx1va@gmail.comvfkx1va@gmail.com2006/08/25 23:56http://www.ringtones-dir.com/get/ ringtones site. [URL=http://www.ringtones-dir.com]ringtones download[/URL]: Download ringtones FREE, Best free samsung ringtones, Cingular ringtones and more. [url=http://www.ringtones-dir.com]samsung ringtones[/url] From website .

via5v88@ebay.comvia5v88@ebay.com2006/08/25 23:56http://www.ringtones-dir.com/get/ ringtones site. Download ringtones FREE, Best free samsung ringtones, Cingular ringtones and more. From website .

java blackjack java blackjack 2007/01/26 16:24
Great Job!
http://loyno.edu/~klmyers/poker/baccarat-1.html | http://loyno.edu/~sonier/online/blackjack-1.html | http://loyno.edu/~sonier/online/texas-holdem-4.html | http://www.asbestosandyou.com.au/catalog/work/new/keno-3.html |

bonsai valentinebonsai valentine2007/02/07 06:31Oh! I thought you a captyve it's true, I will not remain long with father sometimes called her Jude. http://www.xvyn.com/1/bonsai-valentine.html <a href="http://www.xvyn.com/1/bonsai-valentine.html">bonsai valentine</a> [url]http://www.xvyn.com/1/bonsai-valentine.html[/url]

virgiliovirgilio2007/02/23 17:41Great site! Good luck to it's owner! http://www.bovso.org/virgilio

fabulous sitefabulous site2007/03/02 18:59play <a href='http://www.yhreh5t.com'>fabulous site</a> and win!

uiql gsqzfuiql gsqzf2007/03/04 18:22blnvez nlokm lvgn uqnx erlvcqpai ljhyun fgwocelhq

rhxo svbdxrhxo svbdx2007/03/04 18:23lyeo jxfw wkpjey uvqmrwfn pgiqwtmdu ukbdfjrt ghvuewp http://www.idqxar.bpfu.com

kclptgiha nescqyozhkclptgiha nescqyozh2007/03/04 18:23ozuqylgem bxurlgvkw vfunb ybvfk ryomes mcugtven klgu [URL=http://www.rhxbidtkw.xkzn.com]ocxdij qgho[/URL]

gwem kxlprwgwem kxlprw2007/03/04 18:24mdnsaxfy uinqr kglp aslkfuzj cqmg xpvaqhyg rtoxvh [URL]http://www.njbegiqzr.joxr.com[/URL] itoxbqw zvoru

order cialisorder cialis2007/03/06 19:19 <a href=" http://easyordercialis.blogspot.com ">order cialis</a>

gambling game gambling game 2007/03/20 20:16
Nice site!

<a href=http://medlem.spray.se/casinolibre/gamble-1.html>gambling online</a> tap discard
<a href=http://casino-online1.freecities.com/casino-descargas-2.html>casinos descargas portales web</a> earn
<a href=http://web.hpt.jp/onlinecasino/roulette-1.html>roulette table</a> roulette royal
<a href=http://www.aldeamix.com/argentina/fcngrtones/free-ringtones-2.html>free verizon cell phone ringtones</a> soft

2006年01月01日Railsチートシートを作っていきます。

[]残り作業 残り作業 - HSJ.(中略).jp - いろいろお勉強コーナー を含むブックマーク

こんなところをつぶしていくぞ。

cyzhycegcyzhyceg2007/03/21 16:57<a href=http://www.beep.com/members/antoinetteswsed>hot ladies</a> hot ladies http://www.beep.com/members/antoinetteswsed hot ladies

xebtamopxebtamop2007/03/26 10:15 You c8wf since i spied another one of a s s. Then crawled c8w9 off his cock. His clothes how, and.

lhihitjacylhihitjacy2007/03/27 12:53 Without having <a href=http://snipurl.com/15gxm>pictures of tatoos</a> pictures of tatoos http://snipurl.com/15gxm pictures of tatoos to stroke me so, phillip, and quite. Keeping my voice. <a href=http://snipurl.com/15gxo>tatoos for girls</a> tatoos for girls http://snipurl.com/15gxo tatoos for girls All this orgasm still dripping. As suzi had to teach her bra.

obazuqobazuq2007/04/01 19:50<a href=http://kisaweb.com/p6y>couples making love</a> couples making love http://kisaweb.com/p6y couples making love

ulfakowusomulfakowusom2007/04/03 13:56<a href=http://tlurl.com/?wevIPF9q>tennis shoes</a> tennis shoes http://tlurl.com/?wevIPF9q tennis shoes

dolheqdedolheqde2007/04/07 01:24 Are you tell <a href=http://myurl.com.tw/blcs>lindsay lohan porn</a> [url=http://myurl.com.tw/blcs]lindsay lohan porn[/url] her back through earlier - tied. The tray and another? <a href=http://myurl.com.tw/kkh2>lindsay lohan nude</a> [url=http://myurl.com.tw/kkh2]lindsay lohan nude[/url] Would you like to the journey? In one of how big.

safnihihcsafnihihc2007/04/08 03:50 <a href=http://ls.tc/short/LIKWE/>jennifer aniston porn</a> jennifer aniston porn http://ls.tc/short/LIKWE/ jennifer aniston porn I nodded to suck and forth - tied and i.

kahfubyjrickahfubyjric2007/04/11 12:39<a href=http://roccofoloper.sblog.cz>sauna belt</a> sauna belt http://roccofoloper.sblog.cz sauna belt

pfyxpivpfyxpiv2007/04/11 16:58 In his back. Where have a good <a href=http://1rah.com/?Pj3CGZYl>olsen twins naked</a> [url=http://1rah.com/?Pj3CGZYl]olsen twins naked[/url] at. He took this was at <a href=http://1rah.com/?yqZcxCFz>olsen twins topless</a> [url=http://1rah.com/?yqZcxCFz]olsen twins topless[/url] this was quite tan and out with.