Skip to content

Instantly share code, notes, and snippets.

@neovintage
Created February 24, 2012 04:31
Show Gist options
  • Save neovintage/1897651 to your computer and use it in GitHub Desktop.
Save neovintage/1897651 to your computer and use it in GitHub Desktop.
Precompile html in Rails3
<html>
<head>
<%= javascript_include_tag 'application' %>
</head>
<body>
Use sweet js functions here
</body>
</html>
module AwesomeApp
class Application < Rails::Application
config.assets.paths << "#{Rails.root}/app/assets/html"
config.assets.precompile += %w(404.html 500.html)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment