View Single Post
  #1 (permalink)  
Old June 11th, 2008, 09:52 PM
nanetsu nanetsu is offline
Registered User
 
Join Date: Jun 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to nanetsu
Default Pagination problem

Hello everybody!!

I have a problem cannot resolve in hold 2 days.
This is step by step I made my Rail Application

1. Create rail Aplication
>rails store

2. Create database named store_development by mySQL

3. Fix store\config\database.yml

4. Generate controller
>ruby script/generate controller Manage

5. Generate model
>ruby script/generate scaffold Item

6. Repair manage_controller.rb like:

**********************************************
class ManageController < ApplicationController
verify :method => :post, :only => [ :destroy, :create, :update ],:redirect_to => { :action => :list }
def list
    @item_pages, @items = paginate :items, :per_page => 10
end
end
**********************************************


7. Running the application and an error appear in the browser like:
undefined method `paginate' for #<ManageController:0x2f2ce50>


I also install classic_pagination but still the same error appeared in the browser.

:(

Someone give me idea or solution please!!

Best regards,

Reply With Quote