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

Version Path
kuhsaft-2.6.3 app/controllers/kuhsaft/cms/ckimages_controller.rb
kuhsaft-2.6.2 app/controllers/kuhsaft/cms/ckimages_controller.rb
kuhsaft-2.6.1 app/controllers/kuhsaft/cms/ckimages_controller.rb
kuhsaft-2.5.2 app/controllers/kuhsaft/cms/ckimages_controller.rb
kuhsaft-2.6.0 app/controllers/kuhsaft/cms/ckimages_controller.rb
kuhsaft-2.5.1 app/controllers/kuhsaft/cms/ckimages_controller.rb
kuhsaft-2.5.0 app/controllers/kuhsaft/cms/ckimages_controller.rb
qbrick-2.5.0.pre app/controllers/kuhsaft/cms/ckimages_controller.rb
kuhsaft-2.4.3 app/controllers/kuhsaft/cms/ckimages_controller.rb
kuhsaft-2.4.2 app/controllers/kuhsaft/cms/ckimages_controller.rb
kuhsaft-2.4.1 app/controllers/kuhsaft/cms/ckimages_controller.rb
kuhsaft-2.4.0 app/controllers/kuhsaft/cms/ckimages_controller.rb