Relative stylesheet reference


#1

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

This does not get resolved correctly. The problem is the leading slash.
It should be

How can I coerce this change?

Sri


#2

Sri Sankaran wrote:

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…

How can I coerce this change?

maybe <%= stylesheet_link_tag ‘stylesheet/scaffold’ %> ???