Class: Ckeditor::AttachmentFilesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Ckeditor::AttachmentFilesController
- Defined in:
- app/controllers/ckeditor/attachment_files_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
15 16 17 18 |
# File 'app/controllers/ckeditor/attachment_files_controller.rb', line 15 def create = Ckeditor..new respond_with_asset() end |
#destroy ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'app/controllers/ckeditor/attachment_files_controller.rb', line 20 def destroy .destroy respond_to do |format| format.html { redirect_to } format.json { render json: , status: 204 } end end |
#index ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'app/controllers/ckeditor/attachment_files_controller.rb', line 6 def index = Ckeditor..find_all() = Ckeditor::Paginatable.new().page(params[:page]) respond_to do |format| format.html { render layout: .first_page? } end end |