Skip to content

Instantly share code, notes, and snippets.

@ojiry
Created April 19, 2012 08:53
Show Gist options
  • Save ojiry/2419837 to your computer and use it in GitHub Desktop.
Save ojiry/2419837 to your computer and use it in GitHub Desktop.
$ r new ckeditor
$ cd ckeditor
$ cat -n Gemfile | grep -A 2 ckeditor
24 gem 'ckeditor', '3.7.0.rc3'
25 gem "carrierwave"
26 gem "mini_magick"
$ bundle
$ rails g ckeditor:install --orm=active_record --backend=carrierwave
$ rails g scaffold product title body:text
$ rake db:migrate
$ cat -n app/assets/javascripts/application.js | grep ckeditor
15 //= require ckeditor/init
$ cat -n app/views/products/_form.html.erb | grep cktext_area
20 <%= f.cktext_area :body, toolbar: 'Full' %>
$ rails s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment