I have an existing Rails application I am upgrading to Rails 3.1 from Rails 3.0. All is going well in development, but when moving to production my stylesheets are breaking, apparently due to asset compilation.
I would like to disable asset compilation in production until I can get the stylesheet conflicts worked out, but the config switches I throw at it dont seem to be working.
production.rb
# Don't fallback to assets pipeline
config.assets.compile = false
# Do not compress assets
config.assets.compress = false
# Generate digests for assets URLs
config.assets.digest = false
After restarting Passenger application.css is the only stylesheet being served, contains inline content. In the development environment I have:
development.rb
# Do not compress assets
config.assets.compress = false
# Expands the lines which load the assets
config.assets.debug = true
...which leads to several stylesheets being loaded, not just application.css, and working styles in the application.
application.rb
=stylesheet_link_tag 'application'
=javascript_include_tag 'application'
application.css
*= require flutie
*= require_self
*= require jquery-ui-1.8.14.custom.css
*= require demo_table
All assets are setup in app/assets