ActsAsXLSX is an ActiveRecord plugin for Axlsx. It makes generating Excel spreadsheets from any subclass of ActiveRecord::Base as simple as a couple of lines of code.
Put this in your Gemfile
:
git_source(:github){ |repo_name| "https://github.com/#{repo_name}.git" }
gem 'acts_as_xlsx', github: 'jbox-web/acts_as_xlsx', tag: '1.1.0'
then run bundle install
.
See the Guides here.