(NoMethodError)" when starting compass compass " Im usi...">

Getting "undefined method` this' for # <Gem :: Specification: 0x3fcd454385e4 compass-1.0.3> (NoMethodError)" when starting compass compass "

Im using Rails 4.2.3. I am trying to get this import to work in my file "app / assets / stylesheets / profile.css.scss"

@import "compass/css3"; 

but I read that I need to install the compass gem and then compile things. Therefore, after installing the gem, I ran this command

 davea$ compass compile /Users/davea/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/specification.rb:2158:in `method_missing': undefined method `this' for #<Gem::Specification:0x3fcd454385e4 compass-1.0.3> (NoMethodError) from /Users/davea/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/specification.rb:1057:in `find_active_stub_by_path' from /Users/davea/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:64:in `require' from /Users/davea/.rvm/gems/ruby-2.3.0/gems/compass-1.0.3/bin/compass:20:in `block in <top (required)>' from /Users/davea/.rvm/gems/ruby-2.3.0/gems/compass-1.0.3/bin/compass:8:in `fallback_load_path' from /Users/davea/.rvm/gems/ruby-2.3.0/gems/compass-1.0.3/bin/compass:19:in `<top (required)>' from /Users/davea/.rvm/gems/ruby-2.3.0/bin/compass:23:in `load' from /Users/davea/.rvm/gems/ruby-2.3.0/bin/compass:23:in `<main>' from /Users/davea/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `eval' from /Users/davea/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `<main>' 

In the documentation for reading, I was told that I need to create a file "config.rb", which I made in the root directory of the project containing this

 css_dir = "css" sass_dir = "sass" 

but even so far I am getting the above error.

+5
source share
2 answers

Try to name your compass.rb file instead of config.rb .

0
source

This seems to be a gem bug for version 2.5.1. Switching to gem 2.4.8 will work fine. gem update --system 2.4.8 --no-ri --no-rdoc fooobar.com/questions/1001974 / ...

0
source

All Articles