Class: Ckeditor::AttachmentFilesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Ckeditor::AttachmentFilesController
- Defined in:
- app/controllers/ckeditor/attachment_files_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
8 9 10 11 |
# File 'app/controllers/ckeditor/attachment_files_controller.rb', line 8 def create @attachment = Ckeditor::AttachmentFile.new respond_with_asset(@attachment) end |
#destroy ⇒ Object
13 14 15 16 |
# File 'app/controllers/ckeditor/attachment_files_controller.rb', line 13 def destroy @attachment.destroy respond_with(@attachment, :location => ) end |
#index ⇒ Object
3 4 5 6 |
# File 'app/controllers/ckeditor/attachment_files_controller.rb', line 3 def index @attachments = Ckeditor..find_all() respond_with(@attachments) end |