On 20 Nov 2008, at 18:59, Jose vicente Ribera pellicer wrote:

>
> Sorry. I think this is the solution that you're trying to show me:
>
> def expotar  #THIS METTOD SHOULD SELECT ALL THE CURRENT TICKETS IN
> CARTICKET, i think works wroung
>
>    @cartticket = find_cartticket
>    @[EMAIL PROTECTED]
>
>    headers['Contenet-type']="aplication/vnd.ms-excel"
>  headers['Contenet-Disposition']='attachment; filename="report.xls"'
>      headers['Cache-Control']=''
> end
>
> @tickets has the tickets that y need.
>
> I think you were trying to say this

that looks fine to me (ps send_data/send_file might help you reduce  
typos in those headers)

Fred
>
> -- 
> Posted via http://www.ruby-forum.com/.
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to