2009/9/18 Nicolás Sanguinetti <[email protected]>

> ahhh tenes que usar formatted_tickets_path(:format => :csv), el que
> sea solo tickets_path(:format => :csv) es en 2.3 =)
>
> 2009/9/18 dwayne <[email protected]>:
> > rails 2.2.2
> >
> > 2009/9/18 Nicolás Sanguinetti <[email protected]>
> >>
> >> 2009/9/18 dwayne <[email protected]>:
> >> > mmm, claro. si ingreso la URL con .csv directo funciona como vos
> decís.
> >> > tengo el link para "exportar" así:
> >> >
> >> > <%= link_to t('download_csv'), tickets_path(:format => :csv) %>
> >> >
> >> > y no me pone el .csv
> >>
> >> que version de rails?
> >>
> >> > 2009/9/18 Nicolás Sanguinetti <[email protected]>
> >> >>
> >> >> 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
> >> >
> >> >
> >> > _______________________________________________
> >> > 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
> >
> >
> > _______________________________________________
> > 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
>

copeee, esta fue la solucion.
_______________________________________________
Ruby mailing list
[email protected]
http://lista.rubyargentina.com.ar/listinfo.cgi/ruby-rubyargentina.com.ar

Responder a