forked from galetahub/ckeditor
-
Notifications
You must be signed in to change notification settings - Fork 0
Installation: Mongoid
galetahub edited this page Aug 23, 2011
·
4 revisions
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)
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)