I'm trying to make a folder in the public and I wanna link to the
I can't figure out how to do it.
I presume you mean a file in a folder under public, to link to
<%= link_to "my file link" "myfolder/myfile.html" %>
The web server will try and satisfy any link from the public folder
first and only if it fails does it pass it on to Rails routes.
also how does it know when we do like <%= stylesheet_link_tag >, it
will point to the stylesheet folder inside the public folder?
What do you mean how does it know? It is just coded to assume that is
where the scripts are so it generates the html accordingly.