I have a data.txt file in the public folder of my Rails project. I want to link it to one of the pages of my project using link_to . How can i do this?
If i do
<%= link_to "here", "data.txt" %>
it refers to domain.com/data.txt instead of domain.com/my_project/data.txt .
source share