DEV Community

Discussion on: Export Records to CSV Files with Rails

Collapse
 
victorhazbun profile image
Victor Hazbun

nope, it's right the way it is. Since @users is an ActiveRecord::Relation so you can say @users.to_csv