Sha256: 4cdb277cef526c358bf8eb5441912982bbb56d2e7132ad275ee7ee8d5d2f1c7b

Contents?: true

Size: 282 Bytes

Versions: 3

Compression:

Stored size: 282 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)
    end
  end
end

Version data entries

3 entries across 2 versions & 1 rubygems

Version Path
ajax_pagination-0.5.1 spec/rails30_app/app/controllers/changelog_controller.rb
ajax_pagination-0.5.1 spec/rails_app/app/controllers/changelog_controller.rb
ajax_pagination-0.5.0 spec/rails_app/app/controllers/changelog_controller.rb