NoMethodError on line ["32"] in Rails 3.2 with latest Compass and Sass -


i have been searching around bit find solution error message getting , based on research appear error should have been fixed in latest compass-rails and/or sass-rails gem releases. however, still getting error message , because missing silly.

i getting error message when running compass compile command.

the full error message is:

nomethoderror on line ["32"] of /home/mike/.rvm/gems/ruby-1.9.3-p392/gems/sass-rails-3.2.6/lib/sass/rails/helpers.rb: undefined method `[]' nil:nilclass 

my .scss file looks this:

 @import "base";   #container {    @include background-image(linear-gradient(#cbd7e2, #00aeef));     @include background-size(auto);     padding: $container-pad; }  #header {    background-image: image-url("logo.gif"); } 

logo.gif located in rails project directory in app/assets/images.

what missing / doing wrong here? please let me know if need more information.

thanks, meebix


update: seems needed url. still not able image render browser however. have image in assets/images. notice compiling compass doesn't move images public/assets folder (not sure if supposed happen).

what forgetting do?

http://www.w3schools.com/cssref/pr_background-image.asp

in opinion that

background-image: image-url("logo.gif"); 

should be

background-image: url("logo.gif"); 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -