# Problems with will\_paginate gem

**URL:** <https://www.ruby-forum.com/t/problems-with-will-paginate-gem/144761>\
**Category:** Rails\
**Created:** [August 1, 2008, 9:10pm UTC](https://www.ruby-forum.com/t/problems-with-will-paginate-gem/144761 "2008-08-01T21:10:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![explainer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/bbce88/32.png) [@explainer](https://www.ruby-forum.com/u/explainer)\
**Post date:** [August 1, 2008, 9:10pm UTC](https://www.ruby-forum.com/t/problems-with-will-paginate-gem/144761/1 "2008-08-01T21:10:05Z")

</div>

Given that ‘classic\_pagination’ is now deprecated, I decided to  
install the ‘will\_paginate’ gem.

I typed:

sudo gem install will\_paginate

The install went ahead with no messages. I now have will\_paginate  
(2.2.2) showing up in my gem list.

The document states that will\_paginate extends ActiveRecord::Base by  
adding the ‘paginate’ method and others to ActiveRecord:Base. I have  
a class Credential that subclasses from ActiveRecord::Base, so I  
thought I should be able to invoke a paginate class method in the  
form

@cred = Credential.paginate \<\>

When I run this code under Mongrel, I get a ‘method\_missing’  
exception. It appears that will\_paginate is not working. Can someone  
point me in the right direction?

---

<div class="post-metadata">

**Author:** ![explainer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/bbce88/32.png) [@explainer](https://www.ruby-forum.com/u/explainer)\
**Post date:** [August 1, 2008, 11:43pm UTC](https://www.ruby-forum.com/t/problems-with-will-paginate-gem/144761/2 "2008-08-01T23:43:40Z")

</div>

I tried to add the two lines as shown at the end of config/  
environment.rb, but the server would not start with " gem ‘mislav-  
will\_paginate’, ‘~2.2’ "

I changed that line to read ‘gem will\_paginate’, ‘~\>2.2’, and the  
server starts but the paginate method is still missing. I don’t  
understand the need for the gem statement.

BTW, you mentioned a will\_paginate readme.doc. Can you point me to  
that? I have never seen that file. It did not get installed with the  
gem.

---

<div class="post-metadata">

**Author:** ![explainer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/bbce88/32.png) [@explainer](https://www.ruby-forum.com/u/explainer)\
**Post date:** [August 2, 2008, 12:13am UTC](https://www.ruby-forum.com/t/problems-with-will-paginate-gem/144761/3 "2008-08-02T00:13:49Z")

</div>

take a look at:

> **[GitHub - mislav/will\_paginate: Pagination library for Rails and other Ruby...](https://github.com/mislav/will_paginate)**
>
> Pagination library for Rails and other Ruby applications - GitHub - mislav/will\_paginate: Pagination library for Rails and other Ruby applications

---

<div class="post-metadata">

**Author:** ![explainer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/bbce88/32.png) [@explainer](https://www.ruby-forum.com/u/explainer)\
**Post date:** [August 1, 2008, 9:26pm UTC](https://www.ruby-forum.com/t/problems-with-will-paginate-gem/144761/4 "2008-08-01T21:26:42Z")

</div>

from will\_paginate readme.rdoc:

Just add a simple require to the end of  
“config/environment.rb”:

gem ‘mislav-will\_paginate’, ‘~\> 2.2’  
require ‘will\_paginate’

did you follow these intructions?

---

<div class="post-metadata">

**Author:** ![explainer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/bbce88/32.png) [@explainer](https://www.ruby-forum.com/u/explainer)\
**Post date:** [August 2, 2008, 5:16pm UTC](https://www.ruby-forum.com/t/problems-with-will-paginate-gem/144761/5 "2008-08-02T17:16:26Z")

</div>

the instruction is: “Just add a simple require  
to the end of config/environment.rb”

that means in the end of the file, AFTER the  
initializer call.

---

<div class="post-metadata">

**Author:** ![explainer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/bbce88/32.png) [@explainer](https://www.ruby-forum.com/u/explainer)\
**Post date:** [August 2, 2008, 12:51am UTC](https://www.ruby-forum.com/t/problems-with-will-paginate-gem/144761/6 "2008-08-02T00:51:30Z")

</div>

Thanks for pointing me to the readme.doc. I followed the instructions  
and installed gem ‘mislav-will\_paginate’ and am still having  
problems.  
Sorry for the long post, but here is a snapshot of what I am trying  
to debug:

Here is the list method of credential\_controller.rb:  
\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<  
def list  
@credentials = Credential.paginate :page =\> params[:page], :order  
=\> ‘title ASC’

# @credentials = Credential.find :all, :order =\> 'title

ASC’  
end

> > > > > > > > > > > > > > > > >

Here is the config/environment.rb file, which is completely generic  
with the exception of the last two lines:  
\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<

# Be sure to restart your server when you modify this file

# Uncomment below to force Rails into production mode when

# you don’t control web/app server and can’t set it the proper way

# ENV[‘RAILS\_ENV’] ||= ‘production’

# Specifies gem version of Rails to use when vendor/rails is not

present  
RAILS\_GEM\_VERSION = ‘2.1.0’ unless defined? RAILS\_GEM\_VERSION

# Bootstrap the Rails environment, frameworks, and default

configuration  
require File.join(File.dirname( **FILE** ), ‘boot’)

Rails::Initializer.run do |config|

# Settings in config/environments/\* take precedence over those

specified here.

# Application configuration should go into files in config/

initializers

# – all .rb files in that directory are automatically loaded.

# See Rails::Configuration for more options.

# Skip frameworks you’re not going to use. To use Rails without a

database

# you must remove the Active Record framework.

# config.frameworks -=

[:active\_record, :active\_resource, :action\_mailer]

# Specify gems that this application depends on.

# They can then be installed with “rake gems:install” on new

installations.

# config.gem “bj”

# config.gem “hpricot”, :version =\> ‘0.6’, :source =\> "http://

[code.whytheluckystiff.net](http://code.whytheluckystiff.net)"

# config.gem “aws-s3”, :lib =\> “aws/s3”

# Only load the plugins named here, in the order given. By default,

all plugins

# in vendor/plugins are loaded in alphabetical order.

# :all can be used as a placeholder for all plugins not explicitly

named

# config.plugins =

[:exception\_notification, :ssl\_requirement, :all]

# Add additional load paths for your own custom dirs

# config.load\_paths += %W( #{RAILS\_ROOT}/extras )

# Force all environments to use the same logger level

# (by default production uses :info, the others :debug)

# config.log\_level = :debug

# Make Time.zone default to the specified zone, and make Active

Record store time values

# in the database in UTC, and return them converted to the specified

local zone.

# Run “rake -D time” for a list of tasks for finding time zone

names. Uncomment to use default local time.  
config.time\_zone = ‘UTC’

# Your secret key for verifying cookie session data integrity.

# If you change this key, all old sessions will become invalid!

# Make sure the secret is at least 30 characters and all random,

# no regular words or you’ll be exposed to dictionary attacks.

config.action\_controller.session = {  
:session\_key =\> ‘\_vault-2.0.2\_session’,  
:secret =\>  
‘476000dc4b2737e504685a9f27b29b256a74c64834d06f636cd2ee7c6536a489738caa7050e611b5539862798d25b6425c82d43609d502eac35b66cb7b6a4c02’  
}

# Use the database for sessions instead of the cookie-based default,

# which shouldn’t be used to store highly confidential information

# (create the session table with “rake db:sessions:create”)

# config.action\_controller.session\_store = :active\_record\_store

# Use SQL instead of Active Record’s schema dumper when creating the

test database.

# This is necessary if your schema can’t be completely dumped by the

schema dumper,

# like if you have constraints or database-specific column types

# config.active\_record.schema\_format = :sql

# Activate observers that should always be running

# config.active\_record.observers = :cacher, :garbage\_collector

gem ‘mislav-will\_paginate’, ‘~\> 2.2’  
require ‘will\_paginate’  
end

> > > > > > > > > > > > > > > > > > > > > > > > >

Here is the log contents:  
\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<  
NoMethodError (undefined method `paginate' for #<Class:0xb686b8c8>): /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/ base.rb:1667:in `method\_missing’  
/app/controllers/credential\_controller.rb:28:in `list' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ base.rb:1162:in `send’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_controller/  
base.rb:1162:in `perform_action_without_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ filters.rb:580:in `call\_filters’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_controller/  
filters.rb:573:in `perform_action_without_benchmark' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ benchmarking.rb:68:in `perform\_action\_without\_rescue’  
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ benchmarking.rb:68:in `perform\_action\_without\_rescue’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_controller/  
rescue.rb:201:in `perform_action_without_caching' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ caching/sql_cache.rb:13:in `perform\_action’  
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active\_record/  
connection\_adapters/abstract/query\_cache.rb:33:in `cache' /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/ query_cache.rb:8:in `cache’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_controller/  
caching/sql\_cache.rb:12:in `perform_action' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ base.rb:529:in `send’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_controller/  
base.rb:529:in `process_without_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ filters.rb:569:in `process\_without\_session\_management\_support’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_controller/  
session\_management.rb:130:in `process' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ base.rb:389:in `process’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_controller/  
dispatcher.rb:149:in `handle_request' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ dispatcher.rb:107:in `dispatch’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_controller/  
dispatcher.rb:104:in `synchronize' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ dispatcher.rb:104:in `dispatch’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_controller/  
dispatcher.rb:120:in `dispatch_cgi' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ dispatcher.rb:35:in `dispatch’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/…/lib/mongrel/  
rails.rb:76:in `process' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/ rails.rb:74:in `synchronize’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/…/lib/mongrel/  
rails.rb:74:in `process' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process\_client’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in  
`each' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process\_client’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in  
`run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in  
`new' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in  
`initialize' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in  
`run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/ configurator.rb:282:in `run’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/  
configurator.rb:281:in `each' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/ configurator.rb:281:in `run’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel\_rails:128:in  
`run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/command.rb: 212:in `run’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel\_rails:281  
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active\_support/  
dependencies.rb:502:in `load' /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/ dependencies.rb:502:in `load’  
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active\_support/  
dependencies.rb:354:in `new_constants_in' /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/ dependencies.rb:502:in `load’  
/usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/servers/  
mongrel.rb:64  
/usr/local/lib/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`gem_original_require' /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require’  
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active\_support/  
dependencies.rb:509:in `require' /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/ dependencies.rb:354:in `new\_constants\_in’  
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active\_support/  
dependencies.rb:509:in `require' /usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/server.rb:39 /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem\_original\_require’  
/usr/local/lib/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`require’  
script/server:3

[4;36;1mVaultUser Columns (0.005167) [0m [0;1mSHOW FIELDS FROM  
`users` [0m  
Rendering /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/  
action\_controller/templates/rescues/layout.erb (internal\_server\_error)

> > > > > > > > > > > > > > > > > > > > > >

Here is the error page:  
\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<\<  
NoMethodError in CredentialController#list

undefined method `paginate’ for #Class:0xb686b8c8

RAILS\_ROOT: /home/kenb/development/vault2  
Application Trace | Framework Trace | Full Trace

/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active\_record/  
base.rb:1667:in `method_missing' app/controllers/credential_controller.rb:28:in `list’

/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active\_record/  
base.rb:1667:in `method_missing' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ base.rb:1162:in `send’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_controller/  
base.rb:1162:in `perform_action_without_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ filters.rb:580:in `call\_filters’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_controller/  
filters.rb:573:in `perform_action_without_benchmark' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ benchmarking.rb:68:in `perform\_action\_without\_rescue’  
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ benchmarking.rb:68:in `perform\_action\_without\_rescue’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_controller/  
rescue.rb:201:in `perform_action_without_caching' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ caching/sql_cache.rb:13:in `perform\_action’  
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active\_record/  
connection\_adapters/abstract/query\_cache.rb:33:in `cache' /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/ query_cache.rb:8:in `cache’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_controller/  
caching/sql\_cache.rb:12:in `perform_action' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ base.rb:529:in `send’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_controller/  
base.rb:529:in `process_without_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ filters.rb:569:in `process\_without\_session\_management\_support’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_controller/  
session\_management.rb:130:in `process' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ base.rb:389:in `process’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_controller/  
dispatcher.rb:149:in `handle_request' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ dispatcher.rb:107:in `dispatch’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_controller/  
dispatcher.rb:104:in `synchronize' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ dispatcher.rb:104:in `dispatch’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_controller/  
dispatcher.rb:120:in `dispatch_cgi' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ dispatcher.rb:35:in `dispatch’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:76:in  
`process' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:74:in `synchronize’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:74:in  
`process' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in `process\_client’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `process\_client’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `initialize’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in  
`initialize' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb: 282:in `run’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:  
281:in `each' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb: 281:in `run’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel\_rails:128:in  
`run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/command.rb: 212:in `run’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel\_rails:281  
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active\_support/  
dependencies.rb:502:in `load' /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/ dependencies.rb:502:in `load’  
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active\_support/  
dependencies.rb:354:in `new_constants_in' /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/ dependencies.rb:502:in `load’  
/usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/servers/  
mongrel.rb:64  
/usr/local/lib/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`gem_original_require' /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require’  
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active\_support/  
dependencies.rb:509:in `require' /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/ dependencies.rb:354:in `new\_constants\_in’  
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active\_support/  
dependencies.rb:509:in `require' /usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/server.rb:39 /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem\_original\_require’  
/usr/local/lib/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`require’  
script/server:3

/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active\_record/  
base.rb:1667:in `method_missing' app/controllers/credential_controller.rb:28:in `list’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_controller/  
base.rb:1162:in `send' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ base.rb:1162:in `perform\_action\_without\_filters’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_controller/  
filters.rb:580:in `call_filters' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ filters.rb:573:in `perform\_action\_without\_benchmark’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_controller/  
benchmarking.rb:68:in `perform_action_without_rescue' /usr/lib/ruby/1.8/benchmark.rb:293:in `measure’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_controller/  
benchmarking.rb:68:in `perform_action_without_rescue' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ rescue.rb:201:in `perform\_action\_without\_caching’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_controller/  
caching/sql\_cache.rb:13:in `perform_action' /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/ connection_adapters/abstract/query_cache.rb:33:in `cache’  
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active\_record/  
query\_cache.rb:8:in `cache' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ caching/sql_cache.rb:12:in `perform\_action’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_controller/  
base.rb:529:in `send' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ base.rb:529:in `process\_without\_filters’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_controller/  
filters.rb:569:in `process_without_session_management_support' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ session_management.rb:130:in `process’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_controller/  
base.rb:389:in `process' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ dispatcher.rb:149:in `handle\_request’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_controller/  
dispatcher.rb:107:in `dispatch' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ dispatcher.rb:104:in `synchronize’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_controller/  
dispatcher.rb:104:in `dispatch' /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/ dispatcher.rb:120:in `dispatch\_cgi’  
/usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action\_controller/  
dispatcher.rb:35:in `dispatch' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:76:in `process’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:74:in  
`synchronize' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/rails.rb:74:in `process’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in  
`process_client' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in  
`process_client' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in  
`initialize' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `initialize’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:  
282:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb: 281:in `each’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:  
281:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:128:in `run’  
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/command.rb:  
212:in `run' /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281 /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/ dependencies.rb:502:in `load’  
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active\_support/  
dependencies.rb:502:in `load' /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/ dependencies.rb:354:in `new\_constants\_in’  
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active\_support/  
dependencies.rb:502:in `load' /usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/servers/ mongrel.rb:64 /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem\_original\_require’  
/usr/local/lib/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`require' /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/ dependencies.rb:509:in `require’  
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active\_support/  
dependencies.rb:354:in `new_constants_in' /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/ dependencies.rb:509:in `require’  
/usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/server.rb:39  
/usr/local/lib/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`gem_original_require' /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require’  
script/server:3

Request

Parameters:

None

Show session dump

* * *

:csrf\_id: 5788ba301027d6fe175f00d0add01e72  
:user: !ruby/object:VaultUser  
attributes:  
salt: “-6088322580.647555335067564”  
name: kenb  
updated\_at: 2008-08-01 01:26:56  
hashed\_password: b56f6a56a387f879fb942f52582d3a0af7e30915  
role: “1”  
approved: “0”  
masthead\_id: “0”  
id: “1”  
created\_at: 2008-08-01 01:26:56  
email: removed\_email\_address@domain.invalid  
attributes\_cache: {}

credentials:  
flash: !map:ActionController::Flash::FlashHash {}

Response

Headers:

{“cookie”=\>[],  
“Cache-Control”=\>“no-cache”}

> > > > > > > > > > > > > > > > > > > > > > > > >

---

<div class="post-metadata">

**Author:** ![explainer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/bbce88/32.png) [@explainer](https://www.ruby-forum.com/u/explainer)\
**Post date:** [August 2, 2008, 9:46pm UTC](https://www.ruby-forum.com/t/problems-with-will-paginate-gem/144761/7 "2008-08-02T21:46:11Z")

</div>

Thanks for the pointer. I just by reflex stuck those two line AHEAD  
of the end statement. My bad.
