1

I have a strange error in my rails project. I use ruby 2.1.1@rails4.1.1 and recently added a gem "tinymce-rails".

Everything was working fine until this gem was added. I can't turn on my server in development mode nor production.

The error is:

NoMethodError: undefined method `new' for #<Grease::Adapter(Less::Rails::ImportProcessor):0x0000000702fce0>
  (in /mnt/c/repo/intratur/app/assets/stylesheets/application.css)

Please help me!, I don't what to do!

Mandres
  • 63
  • 7

1 Answers1

1

Grease gem dependency is only for "less-rails" greater or equal to 3.0.0. You can set the gem version to less than 3.0 to resolve it.

Reference: undefined method `new' for #<Grease::Adapter(Less::Rails::ImportProcessor)

Faisal Raza
  • 1,337
  • 1
  • 10
  • 16