Created
July 25, 2011 02:28
-
-
Save dodeja/1103436 to your computer and use it in GitHub Desktop.
Rails 3.1 stable branch ASSET helpers bug reproducing steps.
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
this is the output when visiting | |
http://localhost:3000/assets/application.css | |
/* | |
* This is a manifest file that'll automatically include all the stylesheets available in this directory | |
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at | |
* the top of the compiled file, but it's generally better to create a new file per style scope. | |
*/ | |
div.rails { | |
background: image_url("rails.png") no-repeat; } | |
div.rails1 { | |
background: asset_url("rails.png", image) no-repeat; } | |
div.rails2 { | |
background: url(image_path("rails.png")) no-repeat; } |
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
/* | |
* This is a manifest file that'll automatically include all the stylesheets available in this directory | |
* and any sub-directories. You're free to add application-wide styles to this file and they'll appear at | |
* the top of the compiled file, but it's generally better to create a new file per style scope. | |
*= require_self | |
*= require_tree . | |
*/ | |
div.rails { | |
background: image_url("rails.png") no-repeat; | |
} | |
div.rails1 { | |
background: asset_url("rails.png", image) no-repeat; | |
} | |
div.rails2 { | |
background: url(image_path("rails.png")) no-repeat; | |
} |
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
source 'http://rubygems.org' | |
# Rails Gems | |
gem 'rails', :git => 'git://github.com/rails/rails.git', :branch => '3-1-stable' | |
gem 'sprockets', :git => 'git://github.com/sstephenson/sprockets.git' | |
gem 'sqlite3' | |
group :assets do | |
gem 'sass-rails', :git => 'git://github.com/rails/sass-rails.git', :branch => '3-1-stable' | |
# gem 'sass-rails', "~> 3.1.0.rc" | |
gem 'coffee-script' | |
gem 'uglifier' | |
end | |
gem 'jquery-rails' | |
group :test do | |
# Pretty printed test output | |
gem 'turn', :require => false | |
end |
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
Steps to reproduce by using the guide on heroku. http://devcenter.heroku.com/articles/rails31_heroku_cedar | |
1. Create a new rails app using RC4 | |
=> rails new css-test | |
2. Update gemfile with 3-1-branch | |
4. Test css in scss file | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment