Created
April 19, 2012 08:53
-
-
Save ojiry/2419837 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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