Sha256: 7e54690953dac35f4b2b14a90bb6602d637e763d2ae79c29b277414b1ccdad7b

Contents?: true

Size: 487 Bytes

Versions: 9

Compression:

Stored size: 487 Bytes

Contents

class Ckeditor::PicturesController < Ckeditor::ApplicationController

  def index
    @pictures = Ckeditor.picture_model.find_all(ckeditor_pictures_scope)
    respond_with(@pictures) 
  end
  
  def create
    @picture = Ckeditor::Picture.new
	  respond_with_asset(@picture)
  end
  
  def destroy
    @picture.destroy
    respond_with(@picture, :location => pictures_path)
  end
  
  protected
  
    def find_asset
      @picture = Ckeditor.picture_model.get!(params[:id])
    end
end

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
fullstack-ckeditor-0.1.2 app/controllers/ckeditor/pictures_controller.rb
lafeber_ckeditor-3.7.3 app/controllers/ckeditor/pictures_controller.rb
ckeditor-3.7.3 app/controllers/ckeditor/pictures_controller.rb
ckeditor-3.7.2 app/controllers/ckeditor/pictures_controller.rb
ckeditor-3.7.1 app/controllers/ckeditor/pictures_controller.rb
ckeditor-3.7.0 app/controllers/ckeditor/pictures_controller.rb
ckeditor-3.7.0.rc3 app/controllers/ckeditor/pictures_controller.rb
ckeditor-3.7.0.rc2 app/controllers/ckeditor/pictures_controller.rb
ckeditor-3.7.0.rc1 app/controllers/ckeditor/pictures_controller.rb