论坛首页 编程语言技术论坛

could not find xxx generator

浏览 4937 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2007-05-16  

学习了一下ror,使用其中的脚手架命令scafflod,想感觉一下ror告诉我的轻松、美好的开发感觉,但是却报了一个错误。命令错误如下:

java 代码
  1. F:\RadRails\workspace\depot>ruby script/generate scaffold product admin   
  2.       exists  app/controllers/   
  3.       exists  app/helpers/   
  4.       create  app/views/admin   
  5.       exists  app/views/layouts/   
  6.       exists  test/functional/   
  7.   dependency  model   
  8.       exists    app/models/   
  9.       exists    test/unit/   
  10.       exists    test/fixtures/   
  11.       create    app/models/product.rb   
  12.    identical    test/unit/product_test.rb   
  13.    identical    test/fixtures/products.yml   
  14. Couldn't find 'product' generator  

 

环境:ruby:186-25,db:postgresql8.1,driver:postgres-0.7.1

database.yml:

ruby 代码
  1. development:   
  2.   adapter: postgresql   
  3.   database: depot_development   
  4.   username: sa   
  5.   password: nightwind   
  6.   host: localhost   
  7.   encoding: UTF8  

通过radrails的data视图可以查看数据库里的表,并能做select。

不知道是什么问题,难道是因为postgresql里有多个服务器导致的?(通过pgadmin查看有2个server)

先试下mysql,看看会不会有类似问题。

   发表时间:2007-05-16  
可恶,果然换了mysql,新建schema和table后,脚手架成功。问题究竟处在postgresql什么地方呢?
另外声讨一下http://media.pragprog.com,本来想偷懒去他那把“应用rails进行敏捷开发”的示例源码下载下来,他却给我个这个页面:
We're sorry, but access is denied to that document. 

This might be because you are accessing this site from a machine in China. Because of a massive amount of robot traffic from Chinese machines, we've had to take the unfortunate step of blocking access from those IPs. 

If you feel that access has been denied in error, please contact our support folks.
0 请登录后投票
   发表时间:2007-05-17  
former 写道
可恶,果然换了mysql,新建schema和table后,脚手架成功。问题究竟处在postgresql什么地方呢?
另外声讨一下http://media.pragprog.com,本来想偷懒去他那把“应用rails进行敏捷开发”的示例源码下载下来,他却给我个这个页面:
We're sorry, but access is denied to that document. 

This might be because you are accessing this site from a machine in China. Because of a massive amount of robot traffic from Chinese machines, we've had to take the unfortunate step of blocking access from those IPs. 

If you feel that access has been denied in error, please contact our support folks.


http://download.iteye.com/code/rails2-code.zip

Is this?
0 请登录后投票
   发表时间:2007-05-17  
xxj 写道
former 写道
可恶,果然换了mysql,新建schema和table后,脚手架成功。问题究竟处在postgresql什么地方呢?
另外声讨一下http://media.pragprog.com,本来想偷懒去他那把“应用rails进行敏捷开发”的示例源码下载下来,他却给我个这个页面:
We're sorry, but access is denied to that document. 

This might be because you are accessing this site from a machine in China. Because of a massive amount of robot traffic from Chinese machines, we've had to take the unfortunate step of blocking access from those IPs. 

If you feel that access has been denied in error, please contact our support folks.


http://download.iteye.com/code/rails2-code.zip

Is this?


应该是的,现在下不了,先谢谢!
0 请登录后投票
   发表时间:2007-05-17  
xxj 写道
former 写道
可恶,果然换了mysql,新建schema和table后,脚手架成功。问题究竟处在postgresql什么地方呢?
另外声讨一下http://media.pragprog.com,本来想偷懒去他那把“应用rails进行敏捷开发”的示例源码下载下来,他却给我个这个页面:
We're sorry, but access is denied to that document. 

This might be because you are accessing this site from a machine in China. Because of a massive amount of robot traffic from Chinese machines, we've had to take the unfortunate step of blocking access from those IPs. 

If you feel that access has been denied in error, please contact our support folks.


http://download.iteye.com/code/rails2-code.zip

Is this?


应该是的,现在下不了,谢谢先。
0 请登录后投票
论坛首页 编程语言技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics