What is the "right" way to refer to static resources (i.e. files in ./public)? The problem with the obvious way (hard-coded root, such as href="/stylesheets/myapp.css") is that it doesn''t survive ProxyPass and some other such things. Alex
Alexey Verkhovsky wrote:> What is the "right" way to refer to static resources (i.e. files in > ./public)? > The problem with the obvious way (hard-coded root, such as > href="/stylesheets/myapp.css") is that it doesn''t survive ProxyPass and > some other such things.I''m fairly new to Rails, but I would hope that the methods in ActionView::Helpers::AssetTagHelper, like stylesheet_link_tag, would do what you want. regards Justin