Create reports the easy way.
Add this line to your application's Gemfile:
gem 'nifty-report'
And then execute:
$ bundle
Or install it yourself as:
$ gem install nifty-report
report = Nifty::Report.new('SELECT * FROM users', 'User Report')
report.csv
or
report = Nifty::Report.new('SELECT * FROM users', 'User Report')
report.email_to('jimtom@example.com')
A CSV of all users in the database will be emailed to Jim Tom. You could use a job queue to delay this as well, which I would recommend.
- Fork it ( http://github.com//nifty-report/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request