Csv_builder

screenshot of Csv_builder

CSV template handler for Rails 3

Overview

The CSV Builder Rails plugin provides a simple templating system for serving dynamically generated CSV files from your application. It is compatible with Rails 4.2.x, 5.2.x, and 6.1.x, as well as Ruby 2.5.x, 2.6.x, and 2.7.x. It can be installed as a gem and allows you to create CSV templates for generating rows in your CSV file. You can also set the default filename, encoding, and generator options. The plugin supports streaming of large CSV files and can be used to attach CSV files to emails sent by your application.

Features

  • Templating System: Allows you to create CSV templates for generating rows in your CSV file.
  • Default Filename: You can set the default filename for the browser's "save as" feature.
  • Encoding Support: You can set the input encoding and output encoding for your CSV file.
  • Generator Options: You can define options for the FasterCSV generator.
  • Streaming Support: Supports streaming of large CSV files if the underlying Rack server supports it.
  • Controller Response: You can respond with CSV in your controller action.
  • Attachment to Emails: You can attach a CSV file to emails sent by your application.

Summary

The CSV Builder Rails plugin is a useful tool for generating and serving dynamically generated CSV files in your Rails application. It provides a simple templating system and supports various features such as setting the default filename, encoding, and generator options. The plugin also supports streaming of large CSV files and can be used to attach CSV files to emails sent by your application. It is compatible with multiple versions of Rails and Ruby.