1
안녕하세요. Bootsy를 사용하고 있습니다. 작동하지 않습니다. unfortunatly 이미지 업로드 옵션이 작동하지 않습니다. 이미 잘 작동하는 CarrierWave를 이미 설치했습니다.Rails 4 WYSIWYG Bootsy 이미지 업로드 옵션이 표시되지 않습니다.
내 양식
<%= f.bootsy_area(:description) %>
내 모델
class Page < ActiveRecord::Base
belongs_to :user
include Bootsy::Container
require 'carrierwave/orm/activerecord'
mount_uploader :attachment, AttachmentUploader
extend FriendlyId
friendly_id :title, use: :slugged
validates :title, :presence => true
validates :slug, :presence => true
validates :user_id, :presence => true
def should_generate_new_friendly_id?
new_record? || !self.slug.present? && self.title.present?
end
end
내 컨트롤러
def pages_params
params.require(:page).permit(:title, :description, :status, :slug, :user_id, :password, :attachment, :bootsy_image_gallery_id)
end
def create
@page = Page.new(pages_params)
if @page.save
redirect_to(:action => "index")
else
render("new")
end
end
어떤 조언과 제안 이온은 크게 감사하겠습니다. thanks