is there an easy way to limit the results inside a CSV export to a specific time-frame, like day, week and month?
Hey Sacha, you would just want to use a where query to scope to a date range before calling to_csv on it. You may need to change it from
scoped.each in order for Rails to respect the scope if it wants to override your
where query. That should do it!
Join 30,005+ developers who get early access to new screencasts, articles, guides, updates, and more.