README.md in magic_grid-0.9.3.1 vs README.md in magic_grid-0.10.0

- old
+ new

@@ -1,12 +1,20 @@ MagicGrid ========= -Takes a collection (ActiveRecord or Array) and creates a paginated table of -it using a supplied column definition. It can generate the rows for you, or -you can supply a block to do it yourself. +[![Build Status](https://secure.travis-ci.org/rmg/magic_grid.png?branch=master,stable,release)](http://travis-ci.org/rmg/magic_grid) +Easy collection display grid with column sorting and pagination. + +Displays a collection (ActiveRelation or Array) wrapped in an html table with server +side column sorting, filtering hooks, and search bar. Large collections can be +paginated with either the will_paginate gem or kaminari gem if you use them, or a naive +Enumerable based paginator (without pager links) if neither is present. + +Tables are styled using Themeroller compatible classes, which also don't look _too_ bad +with Bootstrap. + Basic Usage ----------- In your `Gemfile`: @@ -16,10 +24,10 @@ <%= magic_grid(@posts, [:title, :author]) %> Or a more realistic example: -```ruby +```rhtml <%= magic_grid(@posts, [:title, :author, "Actions"]) do |post| %> <tr> <td><%= link_to(post.title, post) %></td> <td><%= link_to(post.author, post.author) %></td> <td>