Sha256: 2eaba10561ccdb1da21baffeb0ff786dd093e462427367789a769e9ebe3e3b0f
Contents?: true
Size: 651 Bytes
Versions: 12
Compression:
Stored size: 651 Bytes
Contents
module Kuhsaft module Cms class CkimagesController < AdminController layout 'kuhsaft/cms/ckimages' skip_before_action :verify_authenticity_token respond_to :html, :js def create @func_num = params['CKEditorFuncNum'] @ck_editor = params['CKEditor'] @ckimage = Kuhsaft::Ckimage.create(file: params[:upload]) end def index @func_num = params['CKEditorFuncNum'] @ck_editor = params['CKEditor'] @ckimages = Kuhsaft::Ckimage.all end def destroy @ckimage = Kuhsaft::Ckimage.find(params[:id]) @ckimage.destroy end end end end
Version data entries
12 entries across 12 versions & 2 rubygems