How to remove ID from stylesheet_link_tag?

When I use stylesheet_link_tag, the results come back with a timestamp
ID, like this:

I don’t want the query string and ID on the end, but I can’t see how to
disable this in the docs. How do I do this?

thanks,
jeff

Jeff,

Why don’t you want the timestamp?
It makes it so newer versions of your stylesheets are picked up by
users who currently have them cached. Very useful.
Of course like anything in rails just monkey patch (override) the
stylesheet_link_tag method if you really can’t live with it.

Zack

On 8/4/06, Jeff C. [email protected] wrote:

I don’t want the query string and ID on the end, but I can’t see how to
disable this in the docs. How do I do this?

It’s not well documented. Unless the code’s changed recently, which it
well might have, you actually have to override #compute_public_path.

I’ve written a bit about it on my blog:

http://hypsometry.com/blog/on-browser-caching-asset-timestamping-and-rails


Chris B., Hypsometry
http://hypsometry.com/
Web Application Design & Development

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs