17 Apr '12, 3am

60 comments:

Small gotcha if anyone gets caught up on this...if you are attempting to paginate an ActiveRecord relation that has had the includes method called on it, and you include another table with a column name that is the same as the table you're paginating (like created_at), and you're trying to order on that column, kaminari can't figure it out. You have to do something like this: @posts = Post.order("posts.created_at DESC").page(params[:page]).per(5).includes(:comments)

Full article: http://railscasts.com/episodes/254-pagination-with-kamina...

Tweets

Cree claims R&D record for white LED: 254 lm/Watt

edn.com 14 Apr '12, 2am

Cree says that the R&D version of the white LED’s efficacy was measured at 254 lumens per watt, at a correlated color temp...

Tiket Ke Persembahan Russell Peters Di Malaysia...

rotikaya.com 18 Apr '12, 3am

Kalau anda berkira kira hari ini untuk membeli tiket ke persembahan khas pelawak terkenal ini, lupakan sahaja niat anda. S...

@Cree claims R&D record for white #LED : 254 lm...

edn.com 12 Apr '12, 4pm

Cree says that the R&D version of the white LED’s efficacy was measured at 254 lumens per watt, at a correlated color temp...

60% off Gmall’s Recesky DIY LOMO Camera - Inclu...

deal.com.sg 17 Apr '12, 4am

Voucher is valid from 17 Apr 2012 to 30 Apr 2012 Choice of colour is subject to availability Delivery is included via Sing...