HTML5 Offline Cache Manifest file with asset pipeline in Rails 3.2 app? -
i'd created first web app using ruby on rails. , now, want make offline.
how-to create html5 offline cache manifest file in rails 3.2 app?
i read q&a , articles. seems outdated. (e.g. rack-offline?)
.note: e.g. rack-offline output home.js rather home-234201233453.js
to make use of asset pipeline, don't want change settings if possible. (most articles suggested disable pre-compile) :-/
is there suggestion , tips? (create controller? erb? etc.)
p.s. i'm newbie in development (learn 1 month only). understand html5 manifest mechanism i'm not sure how create in rails
rack-offline has been updated work asset pipeline in rails 3.1+. unfortunately, maintainer has not bumped gem version, installing rack-offline gem won't work you. in gemfile, specify git repo of recent version , should good:
gem 'rack-offline', :git => 'https://github.com/wycats/rack-offline.git'
Comments
Post a Comment