Hello!
in folder public/pdf I have a file "test.pdf"

when I try it open http://127.0.0.1:3001/pdf/test.pd
everything is ok, browser open test.pdf.

but when I try to redirect in method
(redirect_to_path "/pdf/test.pdf" )

I see error

no route found to match "/pdf/test.pdf" with {:method=>:get}

what is wrong?