forked from galetahub/ckeditor
-
Notifications
You must be signed in to change notification settings - Fork 0
Installation: ActiveRecord
galetahub edited this page Aug 14, 2011
·
2 revisions
Note: PaperClip requires ImageMagic. Consult PaperClip page for installation details.
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)
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)