Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Alexei Danchenkov's Profile

GitHub User: danchenkov

Site: Rails Projects

Comments by Alexei Danchenkov

Avatar

That is because @products.class is Array, which responds_to? :to_csv. I guess you should call to_csv or whatever method name you have as class method: send_data Products.order(:name).to_csv

Avatar

Ryan, the series is amazing!

I am testing the presence of particular page elements in views and can't figure out where such views testing belongs - controller tests with integrated views or integration tests. Could you elaborate on that a little in the future episodes?

Avatar

Thanks, Geoff. I was exhausted trying to figure things out.