Rails 3.1 ckeditor

前端 未结 4 1888
死守一世寂寞
死守一世寂寞 2021-02-10 06:41

So I just tried to install ckeditor in rails, however it doesn\'t look like its working.

Here is what I did

added these lines to my gemfile

gem \         


        
4条回答
  •  迷失自我
    2021-02-10 06:57

    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.

提交回复
热议问题