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

[b]rails store[/b]

2. Create database named store_development by mySQL

3. Fix store\config\database.yml

4. Generate controller

[b]ruby script/generate controller Manage[/b]

5. Generate model

[b]ruby script/generate scaffold Item[/b]

6. Repair manage_controller.rb like: [b]

My Quang wrote:

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

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 Dokkai wrote:

My Quang wrote:

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

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.

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!!

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