igor-alexandrov / wiselinks

If Turbolinks are not enough for you. Wiselinks makes your application work faster.
MIT License
723 stars 89 forks source link

rails4 and meta tag #42

Open aaronchi opened 11 years ago

aaronchi commented 11 years ago

I'm trying to use wiselinks with Rails4 but the meta tag does not work.

Rails.application.config.assets.digests returns nil, even when asset digests are enabled. I'm not sure if there's another way to do this.

igor-alexandrov commented 11 years ago

Bad news... We have to find something to track assets change.

aaronchi commented 11 years ago

Seems like it works if you load the manifest file generated by sprockets: https://github.com/aaronchi/wiselinks/commit/34e3a016382450f7620f5ff0f858343291161aef

This commit just needs a Rails version switch and you should be able to support Rails 3 and 4

igor-alexandrov commented 11 years ago

So you didn't tested this with Rails 3, yes?

bingxie commented 10 years ago

I have tried with rails 4.1.4, there is not the same issue.