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

  1. Create database named store_development by mySQL

  2. Fix store\config\database.yml

  3. Generate controller

ruby script/generate controller Manage

  1. Generate model

ruby script/generate scaffold Item

  1. Repair manage_controller.rb like:
    [b]

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


[/b]

  1. 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.

[:(!][V][V]

Someone give me idea or solution please!!

Best regards,

My Quang wrote:

  1. 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,

restart the server

Pokkai D. wrote:

My Quang wrote:

  1. 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,

restart the server

Hello Pokkai

I have restarted the server, but it cannot

I installed classic_pagination by this command

ruby script/plugin install svn://errtheblog.com/svn/plugins/classic_pagination
(not display any thing)

I think the problem is that command have not any effect in my PC.
Because event thought it didn’t throw any mistake but i could not see
anything after running that command. And I did not see pagination.rb in
Ruby folder.

I have just download “classic_pagination” to “c:\Classic_pagination”
folder.
But I don’t know how to add that plugin to rail from
“c:\Classic_pagination”?

Someone help me install it.

Thanks!!

My Quang wrote:

Hello Pokkai

I have restarted the server, but it cannot

I installed classic_pagination by this command

ruby script/plugin install svn://errtheblog.com/svn/plugins/classic_pagination
(not display any thing)

I think the problem is that command have not any effect in my PC.
Because event thought it didn’t throw any mistake but i could not see
anything after running that command. And I did not see pagination.rb in
Ruby folder.

I have just use snv to download
“svn://errtheblog.com/svn/plugins/classic_pagination”

But it timeout!!

On 12 Jun 2008, at 09:12, My Quang wrote:

I have just download “classic_pagination” to “c:\Classic_pagination”
folder.
But I don’t know how to add that plugin to rail from
“c:\Classic_pagination”?

move the folder to your_app/vendor/plugins

Fred

My Quang wrote:

I have just download “classic_pagination” to “c:\Classic_pagination”
folder.
But I don’t know how to add that plugin to rail from
“c:\Classic_pagination”?

Someone help me install it.

Thanks!!

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/trunk/vendor/plugins/classic_pagination/

That’s OK