# NoMethodError in AdminController#index

**URL:** <https://www.ruby-forum.com/t/nomethoderror-in-admincontroller-index/136313>\
**Category:** Rails\
**Created:** [April 30, 2008, 7:48pm UTC](https://www.ruby-forum.com/t/nomethoderror-in-admincontroller-index/136313 "2008-04-30T19:48:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cornelombaard](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e274bd/32.png) [@cornelombaard](https://www.ruby-forum.com/u/cornelombaard)\
**Post date:** [April 30, 2008, 7:48pm UTC](https://www.ruby-forum.com/t/nomethoderror-in-admincontroller-index/136313/1 "2008-04-30T19:48:44Z")

</div>

I am reading Agile Web D. with Rails and after setting  
everything up with the first application I get the following error:  
NoMethodError in AdminController#index undefined method `scaffold

I then installed the plugin for scaffold and I got this error:  
undefined method `paginate’

I have read on the web and in this group about installing The paginate  
plugin but I cannot get it to work and I cannot find the plugin to  
install. Where do I find the plugin? How do I install it on my  
Mandriva system and if not how do I get rid of it?

PLEASE!

---

<div class="post-metadata">

**Author:** ![cornelombaard](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e274bd/32.png) [@cornelombaard](https://www.ruby-forum.com/u/cornelombaard)\
**Post date:** [May 2, 2008, 6:37am UTC](https://www.ruby-forum.com/t/nomethoderror-in-admincontroller-index/136313/2 "2008-05-02T06:37:48Z")

</div>

Unfortunately, the Agile Web Dev with Rails is out of date if you’re  
using Rails 2.0

Here’s a link to a Railscast that shows you how to install and use the  
will\_paginate plugin.

> **[\#51 will\_paginate - RailsCasts](http://railscasts.com/episodes/51-will-paginate)**
>
> Short Ruby on Rails screencasts containing tips, tricks and tutorials. Great for both novice and experienced web developers.
