Skip to content

Instantly share code, notes, and snippets.

@dodeja
Created July 25, 2011 02:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dodeja/1103436 to your computer and use it in GitHub Desktop.
Save dodeja/1103436 to your computer and use it in GitHub Desktop.
Rails 3.1 stable branch ASSET helpers bug reproducing steps.
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 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;
}
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
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