RailsCasts Pro episodes are now free!
Learn more or hide this
Resources
gem "rack-offline"
match "/application.manifest" => Rails::Offline
ENV["RAILS_ASSET_ID"] = "" # disable timestamps at end of asset files for offline browsing
config.cache_classes = true # to temporarily simulate production
<html manifest="/application.manifest">
$(function() { $(window.applicationCache).bind("error", function() { alert("There was an error when loading the cache manifest."); }); });