Sha256: 50ae27d16515b1f6a8cf15e2a09902addffadd22f11ccefcadcb20457140afbe

Contents?: true

Size: 304 Bytes

Versions: 12

Compression:

Stored size: 304 Bytes

Contents

class ChangelogController < ApplicationController
  # GET /posts
  # GET /posts.json
  def index
    @changelogs = Changelog.paginate(:page => params[:page], :per_page => 2)

    respond_to do |format|
      format.html # index.html.erb
      ajax_respond format, :section_id => "page"
    end
  end
end

Version data entries

12 entries across 6 versions & 1 rubygems

Version Path
ajax_pagination-0.6.5 spec/rails_app/app/controllers/changelog_controller.rb
ajax_pagination-0.6.5 spec/rails30_app/app/controllers/changelog_controller.rb
ajax_pagination-0.6.4 spec/rails30_app/app/controllers/changelog_controller.rb
ajax_pagination-0.6.4 spec/rails_app/app/controllers/changelog_controller.rb
ajax_pagination-0.6.3 spec/rails30_app/app/controllers/changelog_controller.rb
ajax_pagination-0.6.3 spec/rails_app/app/controllers/changelog_controller.rb
ajax_pagination-0.6.2 spec/rails30_app/app/controllers/changelog_controller.rb
ajax_pagination-0.6.2 spec/rails_app/app/controllers/changelog_controller.rb
ajax_pagination-0.6.1 spec/rails_app/app/controllers/changelog_controller.rb
ajax_pagination-0.6.1 spec/rails30_app/app/controllers/changelog_controller.rb
ajax_pagination-0.6.0 spec/rails30_app/app/controllers/changelog_controller.rb
ajax_pagination-0.6.0 spec/rails_app/app/controllers/changelog_controller.rb