Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Esteban Arango Medina's Profile

GitHub User: esbanarango

Comments by Esteban Arango Medina

Avatar

Put it before your render ;)

ruby
headers["Content-Disposition"] = "attachment; filename=\"#{filename}\""