Sri Sankaran wrote:> Problem: The HREF generated by the stylesheet_link_tag is an absolute path.
>
> Details:
> The layout for my view has the following line
>
> <%= stylesheet_link_tag ''scaffold'' %>
> At runtime, this gets translated to
>
> <link href="/stylesheets/scaffold.css" ... />
>
> This does not get resolved correctly. The problem is the leading
> slash. It should be
Why? Isn''t your stylesheets folder under public? That''s your
webroot, so /stylesheets/...
should look in that folder...
> <link href="stylesheets/scaffold.css" .../>
>
> How can I coerce this change?
maybe <%= stylesheet_link_tag ''stylesheet/scaffold'' %>
???
>
> Sri
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails