Created
May 17, 2010 13:36
-
-
Save dnch/403763 to your computer and use it in GitHub Desktop.
demonstration of SASS bug
This file contains hidden or 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
| [TheOrphanarium] dan:app_name$ tail -f log/development.log | |
| *** In /Users/dan/Code/app_name/config/initializers/haml_and_sass.rb; Testing if we've loaded SASS... | |
| Sass Not Loaded - Configuration likely to be clobbered | |
| *** In /Users/dan/Code/app_name/config/initializers/haml_and_sass.rb; Checking Template Locations and Style options... | |
| [["./public/stylesheets/sass", "./public/stylesheets"], ["/Users/dan/Code/app_name/app/stylesheets", "./public/stylesheets"]] | |
| Sass::Plugin.options[:style] => compressed | |
| Started GET "/foos/index" for 127.0.0.1 at 2010-05-17 23:34:47 | |
| Processing by FoosController#index as HTML | |
| *** In /Users/dan/Code/app_name/app/controllers/foos_controller.rb; Testing if we've loaded SASS... | |
| Sass Loaded | |
| *** In /Users/dan/Code/app_name/app/controllers/foos_controller.rb; Checking Template Locations and Style options... | |
| [["/Users/dan/Code/app_name/public/stylesheets/sass", "/Users/dan/Code/app_name/public/stylesheets"]] | |
| Sass::Plugin.options[:style] => compressed | |
| Rendered foos/index.html.haml within layouts/application (2.4ms) | |
| Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.0ms) |
This file contains hidden or 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
| class FoosController < ApplicationController | |
| def index | |
| Rails.logger.debug { "*** In #{__FILE__}; Testing if we've loaded SASS..."} | |
| Rails.logger.debug { defined?(Sass::RAILS_LOADED) ? "Sass Loaded" : "Sass Not Loaded - Configuration likely to be clobbered" } | |
| Rails.logger.debug { "*** In #{__FILE__}; Checking Template Locations and Style options..."} | |
| Rails.logger.debug { "#{Sass::Plugin.template_location_array.inspect}"} | |
| Rails.logger.debug { "Sass::Plugin.options[:style] => #{Sass::Plugin.options[:style]}"} | |
| end | |
| end |
This file contains hidden or 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
| Rails.logger.debug { "*** In #{__FILE__}; Testing if we've loaded SASS..."} | |
| Rails.logger.debug { defined?(Sass::RAILS_LOADED) ? "Sass Loaded" : "Sass Not Loaded - Configuration likely to be clobbered" } | |
| Sass::Plugin.add_template_location("#{Rails.root}/app/stylesheets") | |
| Sass::Plugin.options[:style] = :compressed | |
| Rails.logger.debug { "*** In #{__FILE__}; Checking Template Locations and Style options..."} | |
| Rails.logger.debug { "#{Sass::Plugin.template_location_array.inspect}"} | |
| Rails.logger.debug { "Sass::Plugin.options[:style] => #{Sass::Plugin.options[:style]}"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment