TableRails
Provides a view helper for html_table.
Features
- you can call view helpers on the row object
- localizes the table headers using human_attribute_name
Example
HAML
= %table do |row|
= row.column :description, :value => some_view_helper(row.object)
= row.column :description, :value => render(:partial => "employee", :collection => row.object.employees)
ERB
<%= %table do |row|
row.column(:description, :value => some_view_helper(row.object)) +
row.column(:description, :value => render(:partial => "employee", :collection => row.object.employees))
end %>
Installation
gem install html_table_rails
Copyright (c) 2011 Tom Maeckelberghe, released under the MIT license