Integrating CKEditor with Rails 3.2

后端 未结 12 1593
一整个雨季
一整个雨季 2021-02-02 04:27

Similar to Integrating CKEditor with Rails 3.1 Asset Pipline

I am trying to integrate ckeditor with my rails 3.2 application.<

12条回答
  •  [愿得一人]
    2021-02-02 05:02

    STEP 1: Add gem 'paperclip' and gem "ckeditor" in your gemfile.

    STEP 2: Bundle Install.

    STEP 3: rails generate ckeditor:install --orm=active_record --backend=paperclip

    STEP 4: Place config.autoload_paths += %W(#{config.root}/app/models/ckeditor) in application.rb

    STEP 5: Place mount Ckeditor::Engine => "/ckeditor" if not present already and run db:migrate

    STEP 6: Open application.html.erb and place this <%= javascript_include_tag 'ckeditor/ckeditor.js' %> in header.

    STEP 7: Place this in footer(above the body tag) in application.html.erb

    
    

    STEP 8: Restart the WEBrick SERVER. That's it.

提交回复
热议问题