gtd / csv_builder Goto Github PK
View Code? Open in Web Editor NEWCSV template handler for Rails 3
License: MIT License
CSV template handler for Rails 3
License: MIT License
I'm setting the @filename variable in my controller action for this CSV, but the filename I always get when downloading is "{csv.filename}" with the curly braces like that. This happens in Chrome on a Mac.
@gtd this is a fantastic gem!
I had quite a bit of trouble locating this repo however. If I google "csv_builder", these two repos are the top results:
econsultancy/csv_builder
teambox/csv_builder
May I suggest you ask the owners of these to delete their readmes and put a note which links to gtd/csv_builder. (econsultancy is pointing to https://github.com/dasil003/csv_builder, which is dead)
on Rails 6, there is a deprecation warning, it would be great to have it fixed
DEPRECATION WARNING: Single arity template handlers are deprecated. Template handlers must
now accept two parameters, the view object and the source for the view object.
Change:
>> CsvBuilder::TemplateHandler.call(template)
To:
>> CsvBuilder::TemplateHandler.call(template, source)
Hi!
I see there are some specs and there is a travis-ci config, but it looks like travis is not activated.
Maybe activate it? I can help setting it up and maintain it if needed.
Ruby 1.9.3
Rails 3.2.6
I need to produce output in UTF-16LE encoding.
It was not enough to supply @input_encoding = 'UTF-8' and @output_encoding = 'UTF-16LE' as it caused exception (from csv):
incompatible character encodings: UTF-16LE and US-ASCII
I had also supply :encoding => 'UTF-16LE' as part of @csv_options
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.