Hum, si vos vas a /foos/1/action.csv deberia bajarte un archivo 'action.csv'.

El helper que genera el link deberia tener :format => "csv", y eso
deberia armarlo solo.

-f

2009/9/18 dwayne <[email protected]>:
> Hola, esta es una pregunta de Rails, espero no este fuera de lugar.
>
> tengo en mi controller:
>
> respond_to do |format|
>       format.html
>       format.csv { render :layout => false }
>       format.xml { render :xml => @personas }
> end
>
> y tengo los respectivos archivos action.html.erb y action.csv.erb
>
> funciona barbaro pero me gustaria hacer que cuando la persona baja el
> archivo en csv en lugar de recibir el archivo "action" reciba el archivo
> "action.csv"
>
> cómo puedo hacer esto?
>
> _______________________________________________
> Ruby mailing list
> [email protected]
> http://lista.rubyargentina.com.ar/listinfo.cgi/ruby-rubyargentina.com.ar
>
>
_______________________________________________
Ruby mailing list
[email protected]
http://lista.rubyargentina.com.ar/listinfo.cgi/ruby-rubyargentina.com.ar

Responder a