Apr 16, 2008
Generic-user-small n 1 post

Topic: Agile Web Development with Rails / Depot: the admin controller and scaffold

Hi,

Newb in need of help:

I am using Rails 2.0.2 and the 2nd edition of the book, and am totally stuck (print) page 67 where the sample says to edit admin_controller.rb to be:
class AdminController < ApplicationController scaffold :product end
When I try to run http://localhost:3000/admin, the server returns:
NoMethodError in AdminController#index undefined method `scaffold' for AdminController:Class RAILS_ROOT: /railsProjects/depot Application Trace | Framework Trace | Full Trace app/controllers/admin_controller.rb:2

Actually, I have seen a few people complain about this in the errata, which says it’s fixed in B1.02, but I have no idea what this means.

1 post