Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pagination_scope

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pagination_scope

  • 0.1.2
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

= pagination_scope

This is a rails plugin module for mixing in pagination function.

== Description

This library is suitable to use together with complicated named_scope which has :joins options. You can use the WillPaginate for ordinary case of pagination.

== Installation

=== Archive Installation

rake install

=== Gem Installation

gem install pagination_scope

== Features/Problems

== Synopsis

In your model class,

class Post include PaginationScope

In your controller class,

class PostsController < ApplicationController def index @posts = Post.not_deleted.paginate(params[:page], 10)

In your view html.erb,

<%= paginate @posts %>

== Copyright

Author:: Genki Takiuchi genki@s21g.com Copyright:: Copyright (c) 2008 Genki Takiuchi License::

FAQs

Package last updated on 25 Jul 2009

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc