Topic: ckeditor and attachment_fu

I am trying to integrate ckeditor and attachment_fu.

When I activate "browse server" it fails with the message:

NoMethodError (undefined method `where' for #<Class:0x67b7270>):
  vendor/plugins/rails-ckeditor/app/models/ckeditor/asset.rb:7
  vendor/plugins/rails-ckeditor/app/models/ckeditor/picture.rb:1
  vendor/plugins/rails-ckeditor/app/controllers/ckeditor_controller.rb:9:in `images'

The line that causes the failure is in ckeditor/app/models/asset.rb
"scope :masters, where("parent_id IS NULL")"

Last edited by michalyad (2011-03-08 10:16:30)