I need to add a link to download the file from assets/docs/Физика.pdf I do not know how to do that. I am trying to do so here: in view -
<%= link_to "download", '/Физика.pdf', :download => 'filename' %>
I get an error message:
No route matches [GET] "/%D0%A4%D0%B8%D0%B7%D0%B8%D0%BA%D0%B0.pdf"
What am I doing wrong? Help me please
<%= link_to 'download', '/assets/docs/Физика.pdf' %>
or<%= link_to 'download', asset_path('/docs/Физика.pdf') %>
– Internship