diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index 8ce95f0..af65846 100755
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -2,9 +2,9 @@
<%= content_for?(:title) ? yield(:title) : (t :name) %>
- <%= stylesheet_link_tag "application", "forum-monster" %>
+ <%= stylesheet_link_tag :application %>
<%= csrf_meta_tag %>
- <%= javascript_include_tag(:application) %>
+ <%= javascript_include_tag :application %>
<%= yield(:head) %>
diff --git a/config/application.rb b/config/application.rb
index 405caba..fbe473e 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -59,6 +59,8 @@ module Community
# Version of your assets, change this if you want to expire all your assets
config.assets.version = '1.0'
- config.assets.precompile += ['*.css', '*.js']
+ config.assets.initialize_on_precompile = false
+
+ config.assets.precompile += %w('*.css', '*.js')
end
end
diff --git a/config/environments/production.rb b/config/environments/production.rb
index 6148edc..f126d8a 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -14,17 +14,24 @@ Community::Application.configure do
# Compress JavaScripts and CSS
config.assets.compress = true
+ # Choose the compressors to use
+ config.assets.js_compressor = :uglifier
+ # config.assets.css_compressor = :yui
+
# Don't fallback to assets pipeline if a precompiled asset is missed
config.assets.compile = false
# Generate digests for assets URLs
config.assets.digest = true
+ # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
+ # config.assets.precompile += %w( )
+
# Defaults to nil and saved in location specified by config.assets.prefix
# config.assets.manifest = YOUR_PATH
# Specifies the header that your server uses for sending files
- # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
+ config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.