Forum: Ruby on Rails scaffold x paginate

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
4cd3615da7c39beacaaab174267ad8b2?d=identicon&s=25 Davi (Guest)
on 2007-07-29 01:15
(Received via mailing list)
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 Vidal
davividal@siscompar.com.br
davividal@gmail.com
--
This topic is locked and can not be replied to.