Help you to export your data to csv or excel in a dead simple way
Add this line to your application's Gemfile:
gem 'exporter'
And then execute:
$ bundle
# Here is the data which you want to export
users = User.all
# export it
Exporter.export(users, :csv).to_file('user.csv')
Exporter.export(users, :excel).to_file('user.xls')
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write you change
- Run the tests, ensuring they all pass (with travis)
- Submit a Pull Request using Github