You can do this in HTML by setting the href
to the a file's path and giving it a download attribute like so:
<a href="images/file.png" download>
Note that the download attribute doesn't need to be set to anything.
However, the way attributes work in HAML is different and giving it a download parameter that isn't set to anything causes an error.
%a{:href => "images/file.png", :download}
"syntax error, unexpected ')'"
I tried actually setting the download to something but for whatever reason it just redirects to the file as if it doesn't exist.