Shereen Qumsieh

Joined

10 Experience
0 Lessons Completed
0 Questions Solved

Activity

Posted in Exporting Records To CSV Discussion

Thanks so much for this awesome post and episode. I found it really useful for setting up a CSV export for my Users model. I noticed a couple commenters were having a similiar issue when attempting to do an export with has_many relationships. I couldn't seem to get the suggestion that Chris gave Nathan to work for me, so after a couple hours of mucking around, I sorted it out and wrote something up quickly in case it helps anyone else out. So basically, I'm just showing how you can export Users and their potentially many Coupons in a single shot.

http://blog.blackninjadojo.com/ruby/rails/2019/02/06/exporting-rails-models-with-has-many-relationships-to-csv.html

Thanks again,
Shereen

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more.

© 2024 GoRails, LLC. All rights reserved.