Skip to content

Installation: Mongoid

galetahub edited this page Aug 23, 2011 · 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)
Clone this wiki locally