Skip to content

Installation: ActiveRecord

galetahub edited this page Aug 14, 2011 · 2 revisions

Note: PaperClip requires ImageMagic. Consult PaperClip page for installation details.

ActiveRecord + Paperclip

In your Gemfile:

  gem "ckeditor"
  gem "paperclip"

Run ckeditor install generator for download the last ckeditor version:

  rails generate ckeditor:install

Your can install specific version of ckeditor:

  rails generate ckeditor:install --version=3.6.1

Generate models for filebrowser:

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

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

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

ActiveRecord + carrierwave

In your Gemfile:

  gem "ckeditor"
  gem "carrierwave"
  gem "mini_magick"

Run ckeditor install generator for download the last ckeditor version:

  rails generate ckeditor:install

Generate models for filebrowser:

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

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

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