Sha256: c5ba7e2394100ebd1914914f38e1e0e89bb906392e606d2e901dd07ddbba9c31

Contents?: true

Size: 336 Bytes

Versions: 1

Compression:

Stored size: 336 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_pagination(format)
      ajax_pagination format, :pagination => :menu
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ajax_pagination-0.2.0 spec/rails_app/app/controllers/changelog_controller.rb