Ckeditor With Rails4 on Heroku
I push rails101_groupme to heroku today. The project doesn’t have access control and i18n. I use cancan gem to do access authorization and default i18n mechanism. Besides, i also upgrade twitter bootstrap to 3.0.0.
When i push to heroku, i get stuck in ckeditor’s rails 4 compatibility and git issue. After googling i solve it finally.
Fail to fetch gem from git
Error message like this
1 2 3 4 |
|
Because git@github.com use SSH to communication, it requires authentication. Your gemfile may contain some gems like
1
|
|
Change to
1
|
|
Miss assets in rails 4
Very helpful link. Put below in your production.rb
1 2 3 |
|
Ckeditor doesn’t show correctly
Reference to link and link2.
Because ckeditor will read the assets file without digest postfix. My solution is
Add a rake file to create nondigest file of all ckeditor assets.
1 2 3 4 5 6 7 8 9 10 |
|
Execute rake ckeditor
after rake assets:precompile
1 2 |
|