Fixed assets serving

This commit is contained in:
2013-01-20 11:23:11 -05:00
parent 0bf02b8a65
commit 4d7c8f949b
2 changed files with 3 additions and 1 deletions

View File

@@ -58,5 +58,7 @@ module Community
# Version of your assets, change this if you want to expire all your assets # Version of your assets, change this if you want to expire all your assets
config.assets.version = '1.0' config.assets.version = '1.0'
config.assets.precompile += ['*.css', '*.js']
end end
end end

View File

@@ -9,7 +9,7 @@ Community::Application.configure do
config.action_controller.perform_caching = true config.action_controller.perform_caching = true
# Disable Rails's static asset server (Apache or nginx will already do this) # Disable Rails's static asset server (Apache or nginx will already do this)
config.serve_static_assets = false config.serve_static_assets = true
# Compress JavaScripts and CSS # Compress JavaScripts and CSS
config.assets.compress = true config.assets.compress = true