# Undefined method \`paginate'

**URL:** <https://www.ruby-forum.com/t/undefined-method-paginate/122995>\
**Category:** Rails\
**Created:** [December 13, 2007, 9:34am UTC](https://www.ruby-forum.com/t/undefined-method-paginate/122995 "2007-12-13T09:34:45Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![huang\_zhimin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/54ee81/32.png) [@huang\_zhimin](https://www.ruby-forum.com/u/huang_zhimin)\
**Post date:** [December 13, 2007, 9:34am UTC](https://www.ruby-forum.com/t/undefined-method-paginate/122995/1 "2007-12-13T09:34:45Z")

</div>

I have updated rails to 2.0.1. When I wrote a blog demo, I got  
NoMethodError  
_undefined method ‘scaffold’_  
I searched with google and installed scaffolding plugin, now the  
undefined  
method ‘scaffold’ has gone, but there’s still NoMethodError

\*undefined method `paginate’ \*

How can I fix this error?

–

> **[CodeLineStatistics](https://sourceforge.net/projects/mycodeline/)**
>
> Download CodeLineStatistics for free. The code line statistics takes files and directories from GUI, counts the total files, total sizes of files, total lines, lines of codes, lines of comments and lines of blanks in the files, displays the results...

---

<div class="post-metadata">

**Author:** ![huang\_zhimin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/54ee81/32.png) [@huang\_zhimin](https://www.ruby-forum.com/u/huang_zhimin)\
**Post date:** [December 13, 2007, 9:41am UTC](https://www.ruby-forum.com/t/undefined-method-paginate/122995/2 "2007-12-13T09:41:47Z")

</div>

On 13 dic, 08:33, “huang zhimin” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I have updated rails to 2.0.1. When I wrote a blog demo, I got NoMethodError  
> _undefined method ‘scaffold’_  
> I searched with google and installed scaffolding plugin, now the undefined  
> method ‘scaffold’ has gone, but there’s still NoMethodError
> 
> \*undefined method `paginate’ \*
> 
> How can I fix this error?

AFAIK, pagination is not included in the core Rails distribution. You  
have to install a plugin like will\_paginate[1].

Good luck!

[1] [http://agilewebdevelopment.com/plugins/will\_paginate](http://agilewebdevelopment.com/plugins/will_paginate)

---

<div class="post-metadata">

**Author:** ![huang\_zhimin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/54ee81/32.png) [@huang\_zhimin](https://www.ruby-forum.com/u/huang_zhimin)\
**Post date:** [December 13, 2007, 9:44am UTC](https://www.ruby-forum.com/t/undefined-method-paginate/122995/3 "2007-12-13T09:44:43Z")

</div>

Can it work with scaffold plugin?

On Dec 13, 2007 4:41 PM, Imobach GonzÃ¡lez Sosa [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> > How can I fix this error?
> 
> AFAIK, pagination is not included in the core Rails distribution. You  
> have to install a plugin like will\_paginate[1].
> 
> Good luck!
> 
> [1] [http://agilewebdevelopment.com/plugins/will\_paginate](http://agilewebdevelopment.com/plugins/will_paginate)
> 
> >

–

> **[CodeLineStatistics](https://sourceforge.net/projects/mycodeline/)**
>
> Download CodeLineStatistics for free. The code line statistics takes files and directories from GUI, counts the total files, total sizes of files, total lines, lines of codes, lines of comments and lines of blanks in the files, displays the results...

[http://rubyforge.org/projects/ropenwiki/](http://rubyforge.org/projects/ropenwiki/)

---

<div class="post-metadata">

**Author:** ![huang\_zhimin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/54ee81/32.png) [@huang\_zhimin](https://www.ruby-forum.com/u/huang_zhimin)\
**Post date:** [December 13, 2007, 9:48am UTC](https://www.ruby-forum.com/t/undefined-method-paginate/122995/4 "2007-12-13T09:48:14Z")

</div>

Just install the plugin “classic\_pagination”, if you need the pre-2.0  
default Rails pagination.

/ Peter

13 dec 2007 kl. 09.44 skrev huang zhimin:

---

<div class="post-metadata">

**Author:** ![huang\_zhimin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/54ee81/32.png) [@huang\_zhimin](https://www.ruby-forum.com/u/huang_zhimin)\
**Post date:** [December 13, 2007, 9:59am UTC](https://www.ruby-forum.com/t/undefined-method-paginate/122995/5 "2007-12-13T09:59:57Z")

</div>

Is this plugin broken? I can’t get it

On Dec 13, 2007 4:47 PM, Peter B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > On Dec 13, 2007 4:41 PM, Imobach GonzÃ¡lez Sosa [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
> > 
> > > \*undefined method `paginate’ \*
> 
> >

–

> **[CodeLineStatistics](https://sourceforge.net/projects/mycodeline/)**
>
> Download CodeLineStatistics for free. The code line statistics takes files and directories from GUI, counts the total files, total sizes of files, total lines, lines of codes, lines of comments and lines of blanks in the files, displays the results...

[http://rubyforge.org/projects/ropenwiki/](http://rubyforge.org/projects/ropenwiki/)

---

<div class="post-metadata">

**Author:** ![huang\_zhimin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/54ee81/32.png) [@huang\_zhimin](https://www.ruby-forum.com/u/huang_zhimin)\
**Post date:** [December 15, 2007, 11:07pm UTC](https://www.ruby-forum.com/t/undefined-method-paginate/122995/6 "2007-12-15T23:07:50Z")

</div>

And then there’s a Railscast episode on iTunes that shows how to set  
it up. I followed those instructions and it was easy and fast.

Episode 51.

Cheers,

Jim

---

<div class="post-metadata">

**Author:** ![huang\_zhimin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/54ee81/32.png) [@huang\_zhimin](https://www.ruby-forum.com/u/huang_zhimin)\
**Post date:** [December 14, 2007, 10:54am UTC](https://www.ruby-forum.com/t/undefined-method-paginate/122995/7 "2007-12-14T10:54:49Z")

</div>

For pagination use will\_paginate plugin…

It sounds good…

U can install the plugin by…

1. Navigate to the project’s root location in command prompt.
2. Type script/plugin install  
svn://errtheblog.com/svn/plugins/will\_paginate

(example:  
E:\Tests\cookbook\>ruby script/plugin install  
svn://errtheblog.com/svn/plugins/will\_paginate)

---

<div class="post-metadata">

**Author:** ![huang\_zhimin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/54ee81/32.png) [@huang\_zhimin](https://www.ruby-forum.com/u/huang_zhimin)\
**Post date:** [December 23, 2007, 3:11am UTC](https://www.ruby-forum.com/t/undefined-method-paginate/122995/8 "2007-12-23T03:11:38Z")

</div>

If you wan t to use scaffolding in Rails 2.0 this is the correct  
answer. The Scaffolding method calls paginate, and will not work with  
will\_paginate
