Class: Ckeditor::PicturesController
- Inherits:
-
BaseController
- Object
- ApplicationController
- BaseController
- Ckeditor::PicturesController
- Defined in:
- app/controllers/ckeditor/pictures_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
13 14 15 16 |
# File 'app/controllers/ckeditor/pictures_controller.rb', line 13 def create @picture = Ckeditor.image_model.new respond_with_asset(@picture) end |
#destroy ⇒ Object
18 19 20 21 |
# File 'app/controllers/ckeditor/pictures_controller.rb', line 18 def destroy @picture.destroy respond_with(@picture) end |
#edit_images ⇒ Object
8 9 10 11 |
# File 'app/controllers/ckeditor/pictures_controller.rb', line 8 def edit_images @pictures = Ckeditor.image_model.order("id DESC") respond_with(@pictures) end |
#index ⇒ Object
3 4 5 6 |
# File 'app/controllers/ckeditor/pictures_controller.rb', line 3 def index @pictures = Ckeditor.image_model.order("id DESC") respond_with(@pictures) end |