Tableview ========= Tableview is a gem to be used in Rails to create table like views. Installation ============ In your Gemfile: gem 'tablevie' then $ bundle install Create a file in `/lib/application_responder.rb` with: class ApplicationResponder < ActionController::Responder include Tableview::Responder end Then add this to your controller: require "#{Rails.root}/lib/application_responder" self.responder = ApplicationResponder respond_to :html, :csv, :xls, :ascii, :only => :index Then create a partial named `_table.tv` in which you can use a DSL like this to define your table: table.header_row do |row| row.cell "First header cell", :align => :right row.cell "You can do", "more cells at once" end @posts.each do |post| table.row do |row| row.cell post.title row.cell post.body if format.xls? end end