On 14 October 2011 20:13, Richard Lung <[email protected]> wrote: > Hi guys, > > I'm trying to make a folder in the public and I wanna link to the > folder. > I can't figure out how to do it.
I presume you mean a file in a folder under public, to link to public/myfolder/myfile.html <%= 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. Colin > > any help will be appreciated, TIA. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- gplus.to/clanlaw -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

