关于使用scaffold

关于使用scaffold

我参照Agile Web Development with Rails 3nd Edition Beta.pdf上的例子
执行depot> ruby script/generate scaffold product \
没有和书上出现一样的结果
报出了下面的错误
不明白什么意思
请各位指点一下
谢谢~~

D:\MyWorkspace\php?name=rails" onclick="tagshow(event)" class="t_tag">rails\depot>ruby script/generate scaffold product \
Gem::SourceIndex#search support for Regexp patterns is deprecated
c:/ruby/lib/ruby/gems/1.8/gems/rails-2.1.1/lib/rails_generator/lookup.rb:211:in
`each' is outdated
  exists app/models/
  exists app/controllers/
  exists app/helpers/
  exists app/views/products
  exists app/views/layouts/
  exists test/functional/
  exists test/unit/
  exists public/stylesheets/
wrong number of arguments (1 for 2)

D:\MyWorkspace\rails\depot>
引用:
原帖由 kisswheat 于 2008-10-11 10:20 发表
我参照Agile Web Development with Rails 3nd Edition Beta.pdf上的例子
执行depot> ruby script/generate scaffold product \
是scaffold 后面要有 数据名称以及相应类型
顺便提一下,scaffold 后面的 模型 最好别用复数 比如 products。