Scaffold x paginate


#1

Hi all. What am I missing here?

[output]
undefined method `paginate’ for #AdminController:0xb74bf728
[/output]

[admin_controller.rb]
class AdminController < ApplicationController
scaffold :product
end
[/admin_controller.rb]

$ ruby -v
ruby 1.8.6 (2007-06-07 patchlevel 36) [i686-linux]

$ rails -v
Rails 1.2.3

[WEBrick]
=> Booting WEBrick…
=> Rails application started on http://0.0.0.0:3000
=> Ctrl-C to shutdown server; call with --help for options
[2007-07-28 20:15:15] INFO WEBrick 1.3.1
[2007-07-28 20:15:15] INFO ruby 1.8.6 (2007-06-07) [i686-linux]
[2007-07-28 20:15:15] INFO WEBrick::HTTPServer#start: pid=8352
port=3000
127.0.0.1 - - [28/Jul/2007:20:15:18 BRT] “GET /admin HTTP/1.1” 500 9612

  • -> /admin
    [/WEBrick]

    Thanks in advice.


Davi V.
removed_email_address@domain.invalid
removed_email_address@domain.invalid