Skip to content

Instantly share code, notes, and snippets.

@mrb
Created July 22, 2008 15:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrb/1054 to your computer and use it in GitHub Desktop.
Save mrb/1054 to your computer and use it in GitHub Desktop.
column/pagination in haml
.floatleft{:style=>"width:200px;"}
-@contacts[0...(@contacts.per_page/2)].each_with_index do |contact, index|
=render :partial => "contact", :locals => {:contact => contact}
.floatright{:style=>"width:200px;"}
-@contacts[(@contacts.per_page/2)...@contacts.per_page].each_with_index do |contact, index|
=render :partial => "contact", :locals => {:contact => contact}
#pagination{:style=>"clear:both;"}
=will_paginate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment