CSV renderer for Rails 3 and 4