themes_for_rails icon indicating copy to clipboard operation
themes_for_rails copied to clipboard

Digests for precompiled assets

Open idearise opened this issue 12 years ago • 10 comments

It looks like the helpers (ex: theme_stylesheet_link_tag) are not returning asset digest urls for assets, although the digest versions are available.

For example:

<%= theme_stylesheet_link_tag "application" =%>

returns the following (no digest):

<link href="/assets/themename/stylesheets/application.css" media="screen" rel="stylesheet" type="text/css" />

idearise avatar Apr 25 '12 12:04 idearise

This might help with obtaining the digest file names...A hash containing keys of precompiled assets with the values of their digest filenames is available through:

Rails.application.config.assets.digests

idearise avatar Apr 25 '12 15:04 idearise

Is this happening on production? I think the digest version is only generated on production.

lucasefe avatar Jun 02 '12 13:06 lucasefe

Digest versions are available in any environment where digest URLs enabled ( config.assets.digest = true ).

idearise avatar Jun 04 '12 02:06 idearise

I'm just gonna add that this happens for me too: theme_stylesheet_link_tag is not linking to the available digest version in production.

I'm running themes_for_rails (0.5.1) & rails (3.2.6).

Thanks for the great gem @lucasefe, it is one of my favorites :-)

tkriplean avatar Jul 02 '12 21:07 tkriplean

@idearise I see you have a fork which is making use of the digests. Are there any issues outstanding that need addressing? I was about to attack this issue in much the same way and was wondering if there was anything I could help with?

jasherai avatar Aug 02 '12 07:08 jasherai

@idearise And if so, why don't you do a Pull Request? Maybe w can merge it to master, man.

Thanks

lucasefe avatar Aug 02 '12 10:08 lucasefe

Has this been pulled into the master? I'd love to get this working!

danbronsema avatar Aug 31 '12 04:08 danbronsema

Would like to see this issue resolved too. Any chance of adding it in without @idearise pull request?

sweetroll avatar Oct 08 '12 01:10 sweetroll

hey all, i will try and get tests working soon so i can do a pull request. sorry for the delay...

ksheurs avatar Oct 10 '12 14:10 ksheurs

Hey, everyone, I'm looking for a maintainer of this gem. I have no time to dedicate to it, and I'm no longer using it, so if someone wants to step up, I'll be glad to provide help and support for the transition.

I don't want this project to die because of my inability of keeping up with the demand.

So, anyone is interested? If so, shoot me an email to lucasefe at gmail

Best

Lucas.

lucasefe avatar Oct 10 '12 14:10 lucasefe