Wrox Programmer Forums
|
Other Programming Languages If you have a coding issue to discuss about another language that really isn't provided for in any other forum here (not ASP.NET C#, C++, VB, PHP, JavaScript, Python, Java, Perl, Applescript, XML or any of the other forum topics we have), post it here. Enough discussion on a language we don't have covered could prompt a new forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Other Programming Languages section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old June 11th, 2008, 09:52 PM
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
  #2 (permalink)  
Old June 12th, 2008, 06:12 AM
Registered User
 
Join Date: Jun 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to nanetsu
Default

I resolved it

Don't install classic_pagination by
>script/plugin install svn://errtheblog.com/svn/plugins/classic_pagination

Because it's easy to be timeout

I use below command
>script/plugin install http://redmine.rubyforge.org/svn/tru...ic_pagination/

That's OK:):)

Reply With Quote





Similar Threads
Thread Thread Starter Forum Replies Last Post
pagination problem solos XSLT 1 April 4th, 2007 05:40 PM
Problem Regarding Pagination!!!!!!!!!!! mohit_malik555 Pro Java 2 August 3rd, 2006 08:06 AM
Please.....Pagination junemo PHP Databases 2 September 25th, 2004 01:14 PM
Problem with pagination fung Classic ASP Basics 4 August 23rd, 2004 07:42 AM
pagination junemo Oracle 0 July 1st, 2004 04:07 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.