Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Installation: Mongoid

galetahub edited this page · 4 revisions

Mongoid + Paperclip

In your Gemfile:

  gem "ckeditor"
  gem 'mongoid-paperclip', :require => 'mongoid_paperclip'

Run ckeditor install generator for download the last ckeditor version:

  rails generate ckeditor:install

Generate models for filebrowser:

  rails generate ckeditor:models --orm=mongoid --backend=paperclip

Include "app/models/ckeditor" folder for autoload:

  config.autoload_paths += %W(#{config.root}/app/models/ckeditor)

Mongoid + carrierwave

In your Gemfile:

  gem "ckeditor"
  gem 'carrierwave-mongoid', :require => 'carrierwave/mongoid'

Run ckeditor install generator for download the last ckeditor version:

  rails generate ckeditor:install

Generate models for filebrowser:

  rails generate ckeditor:models --orm=mongoid --backend=carrierwave

Include "app/models/ckeditor" folder for autoload:

  config.autoload_paths += %W(#{config.root}/app/models/ckeditor)
Something went wrong with that request. Please try again.