Ckeditor :: PicturesController #create中的NameError

时间:2012-08-15 12:48:56

标签: ruby-on-rails ckeditor

我使用ckeditor和mongoid&我的rails 3.2.6应用程序中的carrierwave。全部安装如https://github.com/galetahub/ckeditor 一切正常,但是当我尝试上传文件或图片时,我有错误:

Ckeditor :: PicturesController #create中的NameError

未初始化的常量Assetable

参数:

{"upload"=># @content_type="image/jpeg",
@headers="Content-Disposition: form-data; name=\"upload\"; filename=\"image.jpg\"\r\nContent-Type: image/jpeg\r\n",
@tempfile=#>,
"CKEditor"=>"content_page_version_partial_content",
"CKEditorFuncNum"=>"2",
"langCode"=>"en",
"authenticity_token"=>"4dpd7COrvkSq+I6sCcPmGHlP5hr++Q9TWQtStZNqWSg="}

什么错了?我怎么解决它?

1 个答案:

答案 0 :(得分:0)

也许你必须初始化carrierwave和activeadmin? 使用rails generate ckeditor:install --orm = active_record --backend = carrierwave