2011-12-20 84 views
0

上傳文件不適用於我。該文件確實得到保存,但查看CKeditor發送的沒有真實性標記的參數。所以我得到一個「無法驗證CSRF真實性」的警告,它會重置會話,然後我無法更新該帖子。Rails 3.1和CKEditor w Carrierwave,無法上傳

令牌設置在窗體中,但CKEditor似乎不會將其發送給圖片或文件上傳。我認爲這可能是確定的,當我用Paperclip使用CKE時,但並不確定。所有其他CKE操作都可以工作。

+0

我覺得回答http://stackoverflow.com/questions/3398707/ruby-on-rails-problem-getting-ckeditor-to-upload-images可能會幫助你。 – kidbrax 2012-12-05 17:26:14

回答

-1

請參閱CKEditor的代碼:

class Ckeditor::ApplicationController < ::ApplicationController 

請添加一些相似:

skip_before_filter :verify_authenticity_token