Created
February 24, 2012 04:31
-
-
Save neovintage/1897651 to your computer and use it in GitHub Desktop.
Precompile html in Rails3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<%= javascript_include_tag 'application' %> | |
</head> | |
<body> | |
Use sweet js functions here | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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