chriseppstein/compass — Issue #634: Rails 3.1 and sprite-dimensions
Author: sinsiliux
Created: 2011-11-30 13:07:54+00:00
State: open

Seems on newest alpha of compass (0.12.alpha.2) sprite-dimensions doesn't work anymore (it works on 0.12.alpha.0). Error looks like this:

TypeError: can't convert nil into String
/home/box2/.rvm/gems/ruby-1.9.3-p0/gems/compass-0.12.alpha.2/lib/compass/sass_extensions/functions/image_size.rb:17:in `extname'

I investigated this and seems that wrong image path is passed to Rails.application.assets.find_asset (eg. compass passes app/assets/image/icons/checked.png, while it should pass icons/checked.png.

On a bit unrelated note there seems to be a typo in image_dEmensions method name.