Sha256: fd91b10ce32c1ba7a0b20c663abd4e6328297bba8f6ccc42875f7ef28bda5ad6

Contents?: true

Size: 668 Bytes

Versions: 73

Compression:

Stored size: 668 Bytes

Contents

class ImagesController < InheritedResources::Base
  respond_to :html, :js, :xml
  belongs_to :gallery

  def index
    index! do |format|
      if params[:CKEditorFuncNum]
        format.html {render :action=>:index, :layout=>"image_dialog"}
      end
    end
  end

  def create
    create! {edit_gallery_path(@gallery, params.slice(:CKEditor, :CKEditorFuncNum, :langCode))}
  end

  def show
    show!  do |format|
      if params[:CKEditorFuncNum]
        format.html {render :layout=>"image_dialog"}
      end
    end
  end

  def collection
    @images ||= end_of_association_chain.
      paginate(:page => params[:page], :order => 'created_at DESC' )
  end
end

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
wheels-0.1.30 app/controllers/images_controller.rb
wheels-0.1.28 app/controllers/images_controller.rb
wheels-0.1.27 app/controllers/images_controller.rb
wheels-0.1.25 app/controllers/images_controller.rb
wheels-0.1.24 app/controllers/images_controller.rb
wheels-0.1.23 app/controllers/images_controller.rb
wheels-0.1.22 app/controllers/images_controller.rb
wheels-0.1.21 app/controllers/images_controller.rb
wheels-0.1.20 app/controllers/images_controller.rb
wheels-0.1.19 app/controllers/images_controller.rb
wheels-0.1.18 app/controllers/images_controller.rb
wheels-0.1.17 app/controllers/images_controller.rb
wheels-0.1.16 app/controllers/images_controller.rb
wheels-0.1.15 app/controllers/images_controller.rb
wheels-0.1.14 app/controllers/images_controller.rb
wheels-0.1.13 app/controllers/images_controller.rb
wheels-0.1.12 app/controllers/images_controller.rb
wheels-0.1.10 app/controllers/images_controller.rb
wheels-0.1.9 app/controllers/images_controller.rb
wheels-0.1.8 app/controllers/images_controller.rb