RailsCasts Pro episodes are now free!

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}\""