Skip to content

Installation: Mongoid

galetahub edited this page Aug 14, 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

Coming soon ...

Clone this wiki locally