I'm nearly done porting a Rails 2.3 app to Rails 4.2, including a switch to 
Postgres.  Yay!

But I've bumped into an issue I can't seem to sort out with regard to 
calling "send_data" in a controller to return a CSV file.  

My previously functioning code now complains about a missing template:

Missing template search_results_export/export_geo_search_results, 
> application/export_geo_search_results with {:locale=>[:en], 
> :formats=>[:csv], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, 
> :coffee, :prawn, :prawn_dsl]}.


The code isn't getting into the controller action where the CSV data is 
generated, so it's something higher up in the stack.

Responders were removed from Rails 4.2:

respond_with and the class-level respond_to methods have been extracted to 
> the responders gem. To use them, simply add gem 'responders', '~> 2.0' to 
> your Gemfile.


I've added the responders gem but still no dice.

Anyone have words of wisdom?  Do I need to add a custom Renderer?

Chris

-- 
-- 
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby
--- 
You received this message because you are subscribed to the Google Groups "SD 
Ruby" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to