wycats / rack-offline

A Rack and Rails plugin for building offline web applications
MIT License
666 stars 82 forks source link

Support for Rails 3.1 #14

Closed kendagriff closed 12 years ago

kendagriff commented 12 years ago

I'm kinda stumped: no matter what I do w/ rack-offline, it always produces:

CACHE MANIFEST
# f2d7f204566173c89ce729e46bdd7e8c6d75087f6b2213367c49b598e3d04dc2
404.html
422.html
500.html
index.html

NETWORK:
/

The hash will update, but no files are added to the manifest. So far, I've:

  1. Tried using the 'master' branch to support the new assets folder. Neither placing files there, nor the public folder works.
  2. Tried adding an initializer and passing :cache => true to Rack::Offline.configure.
  3. Tried adding a straight-up cache 'assets/application.js' to an initializer.
  4. Turning off cache-busting in application.rb.

This is in a plain vanilla Rails 3.1.0 app. Does the manifest file not update in development mode? Am I missing something obvious?

kendagriff commented 12 years ago

K, found the problem. It was something obvious: the assets must be compiled within the public/assets directory... not the development directory.