On Oct 14, 2011, at 3:13 PM, Richard L. wrote:
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.
also how does it know when we do like <%= stylesheet_link_tag >, it
will point to the stylesheet folder inside the public folder?
any help will be appreciated, TIA.
If you think about the public folder as the Apache root folder on a
static Web server, all paths will make sense. If you’re using the Rails
link helper (and you don’t have any conflicting routes) then it’s as
simple as this:
<%= link_to ‘Baz’, ‘/foo/bar/baz.html’ %>