I recently learned how to develop agile Web applications-applying rails for agile web development, version 2nd. When I implemented depot in chapter 1
Create the "goods maintenance" application,
Class admincontroller <applicationcontroller
Scaffold: Product
End
Then
Depot> Ruby script/Server
An error occurs when I enter localhost: 3000/admin in the browser:
Undefined method 'scaffold' for admincontroller: class.
Depressed for a while, I found some materials online. Finally solved, happy...
First, describe my development environment: ruby1.8.6 rails2.0.2
The development environment in the book is: ruby1.8.4 rails1.2
Rails2.0.2 separates scaffold from the plug-in, that is, rails2.0.2 cannot directly use scaffold. You need to install two plug-ins.
1. First install Scaffold
Depot> Ruby script/plugin install http://dev.rubyonrails.com/svn/rails/plugins/scaffolding/
Run localhost: 3000/admin again.
Undefined method 'paginate' for # <admincontroller: 0x3b62210>
Check to know that this is a paging function.
2. Install the old classic_pagination
Ruby script/plugin install http://tools.assembla.com/svn/breakout/breakout/vendor/plugins/classic_pagination/
The above should be OK.