2014-11-05 30 views
0

使用Ck編輯器Gem與Active Admin一起我無法使用瀏覽服務器功能,出現以下錯誤。Ckeditor Rails Sprocket絕對資產路徑錯誤

Asset names passed to helpers should not include the "/assets/" prefix. Instead of "/assets/ckeditor/filebrowser/images/thumbs/zip.gif", use "ckeditor/filebrowser/images/thumbs/zip.gif" 

Sprockets Path Error

我如何配置資產的CKEditor的路徑,以便它們與此功能工作?

回答

1

爲CKEDITOR的路徑是從ckeditor.rb

# Ckeditor files destination path 
    mattr_accessor :relative_path 
    @@relative_path = '/assets/ckeditor' 

來得那麼這顆寶石是不會正常工作與鏈輪的最新版本。 您可以在您的寶石文件中將鏈輪導軌設置爲2.1.3

+0

感謝您更改寶石是解決方案:) – torresomar 2014-11-06 18:36:31

+1

Ckeditor gem的優秀員工合併瞭解決此問題的拉動請求。現在你可以更新你的鏈輪寶石 – pvcarrera 2014-11-07 08:32:20