README.rdoc in midas-g_already_grid-1.0.0 vs README.rdoc in midas-g_already_grid-1.0.1

- old
+ new

@@ -12,23 +12,41 @@ == FEATURES: * Easily generate a rich grid from an ActiveRecord collection * Can integrate with mislav-will_paginate to provide paging controls * Can generate sorting links in headers +* Can do a check box column for multi-selecting +* Automatically renders a check all and adds check all behavior if check box column option == INSTALL: sudo gem install midas-g_already_grid -In Rails environemnt.eb file: +In Rails environemnt.rb file: - config.gem 'midas-g_already_grid', :version => '1.0.0', :lib => 'g_already_grid', :source => 'http://gems.github.com' + config.gem 'midas-g_already_grid', :version => '1.0.0', :lib => 'g_already_grid', :source => 'http://gems.github.com' == USAGE: - <%= %> +Simplest case: + + <%= g_already_grid @items, :id => "items-grid", :cols => [:name, :is_active] %> + +Add sorting (by name column only): + + <%= g_already_grid @items, :id => "items-grid", :cols => [:name, :is_active], :sort => [:name] %> + +Add scoping for nested models (deeply nested): + + <%= g_already_grid @items, :id => "items-grid", :cols => [:name, :is_active], :sort => [:name], + :scoped_by => @account %> + +Add shallow argument to use shallow nesting: + + <%= g_already_grid @items, :id => "items-grid", :cols => [:name, :is_active], :sort => [:name], + :scoped_by => @account, :shallow => true %> == REQUIREMENTS: * Rails >= 2.2.0 \ No newline at end of file