Я использую учебник - https://github.com/galetahub/ckeditor/
И добавить cktext_area
в _form
<%= f.label :body %>
<%= f.cktext_area :body %>
но не отображается
Я использую
gem 'carrierwave'
gem 'mini_magick'
В application.js требуется добавить, изменить маршруты, но не работать вообще, и использовать команду
rails generate ckeditor:install --orm=active_record --backend=carrierwave
.
Помощь !!!
assets.rb
# Be sure to restart your server when you modify this file.
# Version of your assets, change this if you want to expire all your assets.
Rails.application.config.assets.version = '1.0'
Rails.application.config.assets.precompile += %w( ckeditor/*)
# Add additional assets to the asset load path.
# Rails.application.config.assets.paths << Emoji.images_path
# Add Yarn node_modules folder to the asset load path.
Rails.application.config.assets.paths << Rails.root.join('node_modules')
Rails.application.config.assets.precompile += %w[bootswatch.scss]
# Precompile additional assets.
# application.js, application.scss, and all non-JS/CSS in the app/assets
# folder are already added.
# Rails.application.config.assets.precompile += %w( admin.js admin.css )